Yearly Archives: 2026
Find the Previous Greater Element in an Array
Title: Find the Previous Greater Element in an ArrayIn this guide, you'll learn how to find the previous greater element for every position in...
Find the Next Smaller Element in an Array
Title: Find the Next Smaller Element in an ArrayThe next smaller element problem is the mirror image of the classic next greater element question,...
Find the Next Greater Element in an Array
Title: Find the Next Greater Element in an ArrayThe next greater element problem is one of the most common stack-based interview questions, and it...
Find the Smallest Number Greater Than Each Element
Title: Find the Smallest Number Greater Than Each ElementGiven an array of integers, how do you find, for every element, the smallest value anywhere...
Find the Smallest Positive Missing Number
Title: Find the Smallest Positive Missing NumberThe smallest-missing-positive problem is a favorite array question in technical interviews because it looks simple but hides several...
Find the Valley Element in an Array
Title: Find the Valley Element in an ArrayIn this guide, you'll learn how to find a valley element in an array of integers. A...
Find the Peak Element in an Array
Title: Find the Peak Element in an ArrayA peak element is one that is strictly greater than its immediate neighbors. For the first element...
Find the Leader Elements in an Array
Title: Find the Leader Elements in an ArrayIn this guide, you'll learn how to find the leader elements in an array using Java. An...
Find the Equilibrium Index of an Array
Title: Find the Equilibrium Index of an ArrayAn equilibrium index of an array is a position where the sum of all elements to its...
Find All Elements Appearing Once in an Array
Title: Find All Elements Appearing Once in an ArrayPicking out the values that show up only once in a noisy array is a skill...