Out of 3 test cases
2 test cases generates TLE
1 tesr case generates run time error
plz …HELP
My code is
Out of 3 test cases
2 test cases generates TLE
1 tesr case generates run time error
plz …HELP
My code is
hey @ejazsaifi70, there is no need to maintain a vector. You also haven’t check the case when temp==n. Moreover result returned pow() is typecast to Long int which is causing error.
I have made changes to your code only, you can check them here https://ide.codingblocks.com/s/101896
hey @ejazsaifi70 , if your query is resolved. Please mark this doubt as resolved and rate me on the basis of your experience.
rating option will appear when to mark this doubt as resolved
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.