+ 1

why this code is Time Out

The code works fine on different platforms, but here it gives Time Out error. Is there anyone who can explain why? Here is the code: https://code.sololearn.com/cD1eKHbwYmFw/#java

22nd Dec 2019, 2:10 PM
Fatih Çelebi
Fatih Çelebi - avatar
3 Antworten
+ 2
It works fine but you are performing about on 100,000 numbers. So it's depends on networks speed, capacity, free space ... I run it upto 99 value.. Hit the run button, again n again 5 or more times, you may get once... But why need that much? So run upto 50 polindroms...
22nd Dec 2019, 3:06 PM
Jayakrishna 🇮🇳
+ 3
It works fine but not for 100 palindromes(it takes to long to calculate, it is a limitation in sololearn). It tried it with 30 and that worked fine.
22nd Dec 2019, 2:55 PM
Paul
Paul - avatar
+ 1
Thank you very much for your answers. mobile app also plays, but doesn't work on the web
22nd Dec 2019, 3:31 PM
Fatih Çelebi
Fatih Çelebi - avatar