Search⌘ K
AI Features

Maximum Swap

Maximum Swap asks you to rearrange the digits of a nonnegative integer by making at most one swap, then return the largest number possible.

Statement

Given an integer num, return the maximum number that can be formed by swapping ...