Capital One

1 DSA problems asked in Capital One coding interviews

1 Easy
0 Medium
0 Hard
​

1 problem

Strings
1
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.