Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 3682. Minimum Index Sum of Common Elements
Given two lists of strings, find all strings that appear in both lists whose sum of indices (index in list1 + index in list2) is minimal, returning all ties. This is a hashmap + single-pass pattern to compute index sums efficiently in linear time.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.