Available question text
Given counts of right moves (H) and down moves (V), return the k-th lexicographically smallest length-(row+column) string with those counts that reaches (row,column). The core challenge is to construct the string without enumerating all permutations by using combinatorics (n choose r) to count how many sequences start with H vs V and decide each next character accordingly.
Related questions
Continue with questions that share topics or the same question type.
- Find the Kth Smallest Element Across Multiple Sorted Lists
Coding
- Find the Kth Smallest Sum of a Matrix With Sorted Rows
Coding
- Kth Smallest Amount With Single Denomination Combination
Coding
- Kth Smallest Element in a BST
Coding · Binary Search Tree · Binary Tree · Depth-First Search
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 1643. Kth Smallest Instructions
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source