DSA-in-December

โœจ ๐——๐—ฎ๐˜† ๐Ÿญ2: Recursionโœจ

๐Ÿ“Œ What Is Recursion in C++?

Recursion is a method in C++ which calls itself directly or indirectly until a suitable condition is met. In this method, we repeatedly call the function within the same function, and it has a base case and a recursive condition. The recursive condition helps in the repetition of code again and again, and the base case helps in the termination of the condition.

โœ๏ธ ๐—™๐—ผ๐—ฟ ๐—ฏ๐—ฒ๐˜๐˜๐—ฒ๐—ฟ ๐˜‚๐—ป๐—ฑ๐—ฒ๐—ฟ๐˜€๐˜๐—ฎ๐—ป๐—ฑ๐—ถ๐—ป๐—ด ๐—ฟ๐—ฒ๐—ณ๐—ฒ๐—ฟ ๐—ณ๐—ผ๐—น๐—น๐—ผ๐˜„๐—ถ๐—ป๐—ด ๐—ฎ๐—ฟ๐˜๐—ถ๐—ฐ๐—น๐—ฒ๐˜€ ;

  1. https://www.programiz.com/cpp-programming/recursion
  2. https://www.w3schools.com/cpp/cpp_functions_recursion.asp
  3. https://www.javatpoint.com/cpp-recursion
  4. https://www.javatpoint.com/recursion-in-java
  5. https://www.geeksforgeeks.org/recursion-in-python/

๐Ÿ“ฝ๏ธ ๐—ง๐˜‚๐˜๐—ผ๐—ฟ๐—ถ๐—ฎ๐—น ๐—Ÿ๐—ถ๐—ป๐—ธ๐˜€;

  1. https://youtu.be/yVdKa8dnKiE
  2. https://youtu.be/oSQbwlepoCU
  3. https://youtu.be/kHi1DUhp9kM
  4. https://youtu.be/kHi1DUhp9kM
  5. https://youtu.be/UhCObChYSMc

๐Ÿ‘จโ€๐Ÿ’ป ๐—ค๐˜‚๐—ฒ๐˜€๐˜๐—ถ๐—ผ๐—ป๐—ถ๐—ป๐—ด ๐—ฅ๐—ผ๐˜‚๐—ป๐—ฑ: ๐Ÿ‘‡

  1. https://leetcode.com/problems/add-two-numbers/
  2. https://leetcode.com/problems/merge-two-sorted-lists/
  3. https://leetcode.com/problems/powx-n/
  4. https://leetcode.com/problems/power-of-two/
  5. https://leetcode.com/problems/palindrome-linked-list/