Please correct my code

Sir /Mam I am not able to pass all testcase please tell me where i am doing wrong.

Hey @Ankit_kumar_3003 to help you , I must need your code .

Make few changes in your code here


It will pass test cases. If not then let me know :grinning:

sir apne to bas 0 s index start kia h is , m ye puch rha hu ki mere code m kya error thi

Apke code Mai muje bs return statement set issue ho rha tha, Baki Apki implementation shi thi :grinning:

sir still facing same problem of failure of two test cases\

Which test case numbers are you failing @Ankit_kumar_3003?

sir hidden test cases h

Test case number puch rha hu Mai @Ankit_kumar_3003

@Ankit_kumar_3003, instead of using int, try for long long int as test cases are big. This might help you :smile:

sir constraints are 1<=t<=100 1<=n<=90

yes sir you are right ,test cases passed

I knew that @Ankit_kumar_3003, happy coding :grinning:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.