Practice›LeetCode›LeetCode 05xxLeetCode 503: Next Greater Element IIA clear explanation of finding the next greater element in a circular array using a monotonic stack.
Wikis›02. Data Structures›1. Core Data Structures and Operations›1.1 Arrays and Dynamic ArraysCircular ArrayArray that wraps indices modulo capacity to support efficient cyclic access.