filmov
tv
Maximum Swap - Leetcode 670 - Java

Показать описание
Problem Description
You are given an integer num. You can swap two digits at most once to get the maximum valued number.
Return the maximum valued number you can get.
You are given an integer num. You can swap two digits at most once to get the maximum valued number.
Return the maximum valued number you can get.