AirbnbCoding·45 minMembers
Smallest Permutation ≥ Lower Bound
Members only
Given either an integer `n` or a list of digits `0..9`, return the smallest integer string that can be formed from the available digits. The follow-up adds a lower bound `L`: return the smallest value...
SWE
math
backtracking
greedy
medium
Frequency
Medium
Last asked
2026-08-26
Stage
tech-screen · phone-screen
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
