Skip to content
This repository was archived by the owner on Jul 10, 2021. It is now read-only.

Latest commit

 

History

History
8 lines (7 loc) · 495 Bytes

File metadata and controls

8 lines (7 loc) · 495 Bytes

Examples of recursive functions

  • Sum: Returns the sum of all numbers in an array.
  • Stopwatch: Prints each second on a new line until zero.
  • Fibonacci: Returns a number in the Fibonnaci sequence.
  • Factorial: Returns the factorial of a number.
  • Binary Search: Returns all the indexes of a sorted array containing the target number or word.
  • Subsets of Target: Returns all the subsets from an array of numbers such that the subsets meet the target exactly or slightly above it