+ 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
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.
+ 1
here's the link to my code
https://code.sololearn.com/c6FPMRq31rUm/?ref=app
0
answer me yall
0
i thought there's something wrong with the logic.. đ anyway i appreciate your efforts answering my questions, thank you!