Find the Child Who Has the Ball After K Seconds
You are given two positive integers n and k. There are n children numbered from 0 to n - 1 standing in a queue in order from left to right.
Initially, child 0 holds a ball and the direction of passing the ball is towards the right direction. After ea...
perfinsights.hashnode.dev1 min read