首页>itarticle>[leetcode] problem 556 – next greater element iii
[leetcode] problem 556 – next greater element iii
admin11月 13, 20200
Given a positive 32-bit integer n, you need to find the smallest 32-bit integer which has exactly the same digits existing in the integer n and is greater in value than n. If no such positive 32-bit integer exists, you need to return -1.
近期评论