← Samsung questions
CodingMedium

Next Greater integer with same digits

Filed under Samsung · Also reported at Akamai

The question

Given a string representing a number, find the smallest number strictly greater than it that contains the exact same set of digits with matching frequencies.

No write-up yet. Related questions below have one.

Related Samsung questions

Collected from public candidate posts and coding forums. Updated Nov 2026.