Capital One
1 DSA problems asked in Capital One coding interviews
1 Easy
0 Medium
0 Hard
All Categories
All
1 problem
Strings1
License Key Formatting
Easy
You are given a license key `s` of letters, digits and dashes, and an integer `k`. Reformat it so every group has exactly `k` characters, except the first group, which may be shorter but must have at least one character. Groups are separated by single dashes and all letters become uppercase. Return the reformatted key.