1323. Maximum 69 Number
Easy
You are given a positive integer num
consisting only of digits 6
and 9
.
Return the maximum number you can get by changing at most one digit (6
becomes 9
, and 9
becomes 6
).
Example 1:
Example 2:
Example 3:
Constraints:
1 <= num <= 104
num
consists of only6
and9
digits.
解題
Runtime: 0 ms, faster than 100.00%
Memory Usage: 1.9 MB, less than 31.71%
Previous1319. Number of Operations to Make Network Connected ⭐Next1325. Delete Leaves With a Given Value
Last updated