Getting TLE for first two testcases

I am getting TLE for two test cases even I used Matrix Exponentiation.

Hi @archit1jain

Please ask doubt through ask doubt section in your online course then only i’ll be able to help you.
I hope you understand it.

Thanks.

I asked through there only

This is my code for Fast-fibonacci


I am getting one correct and two TLE. Also I used the Matrix Exponentiation.

Hi
@archit1jain i’m not able to see the doubt on my portal.

Hi @sanjeetboora can you please look into this urgently i’m not able to view the doubt in my portal. Please look into this.

Thanks!

Hi
@archit1jain can you tell name of batch of your online course?

Hi Tushar,

Please check now.

Thank you sanjeet for your support!

I think it is Competitive Programming 19 F1

Please help me if the issue is solved

Hi
@archit1jain your code i correct, you are getting TLE most probably because of passing arguments in function by values/ copy. pass the argument by reference.


Done this now…still getting time limit

Please correct me I am wrong somwhere

Please reply for my doubt.

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.

1 Like