Skip to content

arash79/recursion-problems

Repository files navigation

recursion-problems

A collection of recursion problems written in python language. codes that are included in this repository are:

  1. element uniqueness: recursively check whether if an element in an array is unique or not.
  2. exponential: recursively calculate exponentiations of a number(base).
  3. GCD: recursively calculate Greatest Common Divisors of two number.
  4. harmonic number: recursively calculate the n-th harmonic number.
  5. logarithm: recursively calculate the integer part of the logarithm of a number in an arbitrary base.
  6. man and max: recursively find the minimum and maximum values of an array.
  7. palindrome: recursively check whether a given string is palindromic or not.
  8. pascal: recursively calculate the n-th row of pascal's triangle.
  9. product: recursively evaluate the value of two number multiplication.
  10. reverse string: recursively find the reverse of a given string.
  11. string of digits: recursively convert a string of digits to integers.
  12. subset: recursively generate the powerset of a given set.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages