LeetCode #2582 Pass the Pillow and #3207 Maximum Points After Enemy Battles
Pass the Pillow
There are n people standing in a line labelled from 1 to n. The first person in the line is holding a pillow initially. Every second, the person holding the pillow passes it to the next person standing in the line. Once the pillow re...
nobleknight.hashnode.dev4 min read