Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 883 Bytes

File metadata and controls

44 lines (27 loc) · 883 Bytes

题目描述

给定一个32位正整数 n,你需要找到最小的32位整数,其与 中存在的位数完全相同,并且其值大于n。如果不存在这样的32位整数,则返回-1。

示例 1:

输入: 12
输出: 21

示例 2:

输入: 21
输出: -1

解法

Python3

Java

...