482 License Key Formatting
Input:
S = "2-4A0r7-4k", K = 4
Output:
"24A0-R74K"
Explanation:
The string S has been split into two parts, each part has 4 characters.Input:
S = "2-4A0r7-4k", K = 3
Output:
"24-A0R-74K"
Explanation:
The string S has been split into three parts, each part has 3 characters except the first part as it could be shorter as said above.Last updated