test case showing TLE
Class assignment recursion
Hello @sam15jain,
Your code is causing working correct till n=40.
But, if we increase the value of n any further, it extends the specified time limit.
I would suggest you to think of a time effective solution that will not exceed time limit for the values above n=40.
Hope, this would help.
Let me know if you face any issue.
Hint: you can refer to this video Count Binary Strings Hint from your course as it is a similar question but still different.
Any time you feel problem.
Let me know.