Largest Number After Digit Swaps by Parity
You are given a positive integer num. You may swap any two digits of num that have the same parity (i.e. both odd digits or both even digits).
Return the largest possible value of num after any number of swaps.
LeetCode Problem - 2231
class Solution ...
perfinsights.hashnode.dev2 min read