educative.io

I can't understand the solution

Can you please help me? How this algorithms works??

Hi Barik,
Can you please elaborate on your question as we are having difficulties processing it? The lesson provided has no discussion on Algorithms. These are ten different problems we have designed in this course.
Thank you!