I’ve tried that my code works for all test cases including when input is 90. I still get an error in 2 tests cases, could you please help?
2 test cases giving runtime error
hello @Anshul-Chauhan-10221922864290257,
ur logic is correct there might be some issue with java.
I have tested ur code in c++ , it is working fine.
sorry i cannot help u in java. it is not my primary language.
1 Like
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.