Halloween SalePremium questions, over 30% offUnlock all premium questions for over 30% off
Digit Replacement Maximizer
Medium
A numeric optimization system performs exactly k substitution operations on a number string s. In each operation, choose any digit in s that is not "7" and replace it with "7". Find the largest possible number after performing exactly k operations.
If it is impossible to perform exactly k operations (because there are fewer than k non-"7" digits), return an empty string.
...
More LinkedIn interview questions
- Distribution Center Placementmedium
- Manual String Substitutionmedium
- Combine N-ary Treeshard
- Balanced Parentheseseasy
- Words From Phone Numbermedium
- Circular Signal Windowmedium
- Minimum Cost To Decorate Cakesmedium
- Dependency Task Executormedium
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.