0

Time limit exceeded

Canā€™t see the problem... Manually setting int elements = 1; or less works however and returns false... Any help suuuper appreciated! https://code.sololearn.com/cQBpM2Jeor0o/?ref=app

1st Jan 2018, 4:09 AM
EricMcDerrick
EricMcDerrick - avatar
5 Answers
+ 5
in your code the mistake is u place a greater than symbol in last two condition statements ...just replace the greater than to less than in the last else if statement then it works
1st Jan 2018, 4:17 AM
NAGANDLA.LEELA PAVAN KUMAR
NAGANDLA.LEELA PAVAN KUMAR - avatar
1st Jan 2018, 4:19 AM
NAGANDLA.LEELA PAVAN KUMAR
NAGANDLA.LEELA PAVAN KUMAR - avatar
+ 1
@Gordie , you just answered my second question I just wrote :P Thank you! I should have seen that.
1st Jan 2018, 12:36 PM
EricMcDerrick
EricMcDerrick - avatar
0
Thanks!
1st Jan 2018, 9:55 AM
EricMcDerrick
EricMcDerrick - avatar