Skip to content

THIS REPOSITORY CONTAINS RECURSION-BASED PROGRAMS IMPLEMENTED IN JAVA. THESE PROGRAMS COVER VARIOUS CONCEPTS SUCH AS MATHEMATICAL COMPUTATIONS, SEARCHING, AND ARRAY OPERATIONS USING RECURSION. THEY SERVE AS A GREAT RESOURCE FOR STUDENTS AND DEVELOPERS LOOKING TO MASTER RECURSION AND UNDERSTAND ITS PRACTICAL APPLICATIONS IN PROGRAMMING.

Notifications You must be signed in to change notification settings

CodesByPrafful/CODES-OF-BASIC-RECURSION

Repository files navigation

CODES OF BASIC RECURSION Repository:

📌 Overview: This repository contains essential recursion-based programs implemented in Java. These programs demonstrate various recursive techniques, including mathematical computations, searching, and array operations. The repository is useful for students and developers looking to strengthen their understanding of recursion.

📂 Programs Included:

  1. RecArrSmallest.java – Finds the smallest element in an array using recursion.

  2. RecArraySum.java – Computes the sum of all elements in an array using recursion.

  3. RecBinarySearch.java – Implements the Binary Search algorithm recursively.

  4. RecCountDigits.java – Counts the number of digits in a given number recursively.

  5. RecEvenInTwo.java – Finds even numbers within a given range using recursion.

  6. RecFactor.java – Determines factors of a given number recursively.

  7. RecFactorial.java – Computes the factorial of a number using recursion.

  8. RecMultiply.java – Multiplies two numbers using recursion (without using * operator).

  9. RecRevTable.java – Prints the multiplication table in reverse order using recursion.

  10. RecSumNatural.java – Computes the sum of the first N natural numbers recursively.

  11. RecTable.java – Prints the multiplication table of a number using recursion.

🚀 How to Run the Programs

  1. Clone this repository using:

git clone https://github.com/CodesByPrafful/CODES-OF-BASIC-RECURSION.git

  1. Navigate to the repository folder:

cd CODES-OF-BASIC-RECURSION

  1. Compile and run the desired program (modify as per language used):

javac ProgramName.java java ProgramName

🎯 Learning Outcomes:

  1. Understanding recursion fundamentals.

  2. Implementing recursive algorithms for mathematical operations.

  3. Solving searching and array-based problems using recursion.

🤝 Contributing:

To make any changes to this repository, please send an email to the provided email ID for approval. Email:[email protected]

📜 License:

This repository is open-source and available under the MIT License.

📌 Author: CodesByPrafful

🔗 GitHub: https://github.com/CodesByPrafful

About

THIS REPOSITORY CONTAINS RECURSION-BASED PROGRAMS IMPLEMENTED IN JAVA. THESE PROGRAMS COVER VARIOUS CONCEPTS SUCH AS MATHEMATICAL COMPUTATIONS, SEARCHING, AND ARRAY OPERATIONS USING RECURSION. THEY SERVE AS A GREAT RESOURCE FOR STUDENTS AND DEVELOPERS LOOKING TO MASTER RECURSION AND UNDERSTAND ITS PRACTICAL APPLICATIONS IN PROGRAMMING.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages