Search⌘ K
AI Features

Maximum Swap

Maximum Swap gives you an integer and asks you to return the largest number possible by making at most one swap between two digits.

Statement

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