- 1

What is time limit exceeded???? java

I wrote this program in java and the console tells me time limit exceeded: public class Program { public static void main(String[] args) { int x=15; { while(x<56); System.out.println(x); x++; } System.out.println("STOOPP!"); } }

13th Feb 2017, 12:48 PM
Hichem Chekir
Hichem Chekir - avatar
1 Réponse
+ 15
Sololearn has a limit of lines printed out, so the memory won't be getting full. This is what time memory exceeded means.
13th Feb 2017, 1:28 PM
Gami
Gami - avatar