ganesh_6's blog

By ganesh_6, history, 16 months ago, In English

I am solving the problem I could not get the editorial and found the comment useful. I have implemented the solution as per the comment, but it is giving WA


My doubt is that why can't we do like WA and why should we loop using elements instead of indexes?

Please explain why the earlier approach is giving WA and not later.

  • Vote: I like it
  • 0
  • Vote: I do not like it