LeetCode 2582. Pass the Pillow Java Solution
Jul 18, 2024 · 2 min read · 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 ...
Join discussion