Skip to main content

recusion

Easy

NumberNote
202. Happy Numberone fuction for calculating total of next, one function for handle specfic one to support seen and call from that function from main and both in function, seen is used to avoid cycle
326. Power of Threeorder of it function, equals to 1, smaller equal zero and cannot divided to three
342. Power of Fourorder of it function, equals to 1, smaller equal zero and cannot divded to three, and add a edge case of maximum limits
504. Base 7num is smaller than 0 => adding subtraction sign and call recursion and smaller and than 7 return string of num, lastly return //7 and string %7
509. Fibonacci Numberusing self
1837. Sum of Digits in Base Kif n is equals to 0 => return 0, and return n%k plus recursion