You are given two integers n and k. There are n friends labeled from
Starting from friend
Count k friends clockwise, including the current starting friend.
The friend you land on leaves the circle.
The next round starts from the friend immediately clockwise of the removed friend.
Return the label of the last remaining friend.
Constraints:
k n
You are given two integers n and k. There are n friends labeled from
Starting from friend
Count k friends clockwise, including the current starting friend.
The friend you land on leaves the circle.
The next round starts from the friend immediately clockwise of the removed friend.
Return the label of the last remaining friend.
Constraints:
k n