Shows run error on test case 6

Your submission shows that all your test cases were passed. Please check once again.

even though it shows green tick in my submisson it still shows run error on test case 6 even after submitting it again.

Increase the size of your array.
Replace line 75 with int arr[100000];

as my array size conains number of digits so 500 is itself a pretty large value so i dont think dat is the issue

@Krishna-Singh-2678805765519156 The number of digits in 500 factorial is 1135

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.

1 Like