Available question text
Given a circular array and multiple queries, for each query return the minimum circular distance from the queried index to any other index with the same value (or -1 if none exists). This requires grouping indices by value and computing the nearest neighbor distance for each query while accounting for wrap-around.
Related questions
Continue with questions that share topics or the same question type.
- Closest Nodes Queries in a Binary Search Tree
Coding
- Find the Closest Element to a Target in an Array
Coding
- 3Sum Closest
Coding · Array · Sorting · Two Pointers
- Apply Bitwise Operations to Make Strings Equal
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 3488. Closest Equal Element Queries
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source