+ 1

How to solve Time Limit Exceeded

I'm trying the exercise in the book Head First Java about branching and the code runs but it says "Time Limit Exceeded". Anyone willing to help? 😁 you can see my code on my timeline thanks

4th Jul 2018, 3:13 PM
Kai
5 Answers
+ 7
Time limit is exceeded because there are too many bottles of beerđŸș (in this case, 99) but limited time on SL's online compiler. You get about 3 seconds (I don't know the actual number) to compile & run your code on their environment. So, if you want to get rid of time limit, either decrease the number of bottles 😄😂 , or run your code on a locally installed IDE.
4th Jul 2018, 5:16 PM
DAB
DAB - avatar
4th Jul 2018, 3:15 PM
Kai
0
answer me yall
4th Jul 2018, 3:16 PM
Kai
0
i thought there's something wrong with the logic.. 😂 anyway i appreciate your efforts answering my questions, thank you!
4th Jul 2018, 10:54 PM
Kai