0

where is the problem in this code?

https://code.sololearn.com/cN5V0DCdxufg enter input as 2 2 2 3 1 (10 times)

18th Dec 2021, 9:39 AM
Ishaan Oberoi
Ishaan Oberoi - avatar
4 Answers
+ 1
Martin Taylor so sorry. I am new to coding and have not yet become used to commenting In the next code I deleted unused variables, added comments as best as I could . Please guide me if you believe any better comments could be added https://code.sololearn.com/cN5V0DCdxufg/?ref=app
18th Dec 2021, 4:38 PM
Ishaan Oberoi
Ishaan Oberoi - avatar
0
Martin Taylor also sorry for not breaking it up into multiple functions, I intended the code to be straightforward and didn't realize it would be better if it was broken up if I messed up and had to ask a doubt
18th Dec 2021, 4:41 PM
Ishaan Oberoi
Ishaan Oberoi - avatar