Hello …
I am trying to solve this question from hackerearth…
I am not able to understand whole editorial…I am trying to understand one guy submission which is somewhat similar to editorial.https://www.hackerearth.com/submission/43754745/
Could you explain please… What he is doing?Thanks