LeetCode 2582. Pass the Pillow Java Solution
Problem Description
Problem: https://leetcode.com/problems/pass-the-pillow/description/
Description: People are standing in a circle numbered from 1 to n. Person 1 holds a pillow and every hour they pass the pillow to the person to their right. If ...
eunhanlee.hashnode.dev2 min read