Search⌘ K
AI Features

Next Greater Element III

Try to solve the Next Greater Element III problem.

Statement

Given a positive integer n, find the smallest integer that uses exactly the same digits as ...