Status: IN
`next_greater_element` separates into two phases: a single O(n) pass over nums2 using a monotonic stack to build the full next-greater mapping, then O(1)-per-element dict lookups for each query in nums1.
Source: entries/2026/06/06/next-greater-element-i-solution.md