JB TAK FODEGA NHI .... TB TK CHODEGA NHI .... (MAANG)
L6 Recursion on Subsequences
We Preveselly Learned the Multiple Recursion but the Question is where used the Concept of the Multiple Recursion
The stateforword ans is Subsecquance and Dynamic Programming
Subsecquances
Subsecquances Means follow the particular Order its cab be Contigeous or Non - Contigeous
We have Array and print all the Subsecquances with Maintain the Order
How Can we do this Problem
Sudo Code
Recursion Tree
Notes
Note: Zoom for Better Understanding
Code Zone!
Sb Mai He Kru ...
Khud Bhi Kr le Khuch ..... Nalayk
Time Complexity:O(2 ^ N) For every Iteration we have tuple of option take or not take Exponintial Time
Space Complexity:O(N)+O(N) O(N) for the Recursive Stack Space and O(N) for Store the our element that is our Subsecquances.