Available question text
Assign each distinct letter in the word to a press-count position (typing a letter costs its position index on the key) subject to at most 8 letters per position (one per key 2–9) to minimize the total weighted sum of frequencies × positions. This is a capacity-constrained assignment solved by sorting letter frequencies and greedily giving the highest frequencies the smallest available positions.
Related questions
Continue with questions that share topics or the same question type.
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 3016. Minimum Number of Pushes to Type Word II
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source