I recommend adding a tests for repeating characters in a string of more than 20 characters.
eg. doTest("lolollolollolollolol", 20);
doTest("abcdefghijklmnopqrstuvwxyz lolollolollolollolol", 20);
Reason being my solution was very different from most others and I could have submitted without fixing these failing cases.
Added to Example Test cases. Thanks,
I recommend adding a tests for repeating characters in a string of more than 20 characters.
eg. doTest("lolollolollolollolol", 20);
doTest("abcdefghijklmnopqrstuvwxyz lolollolollolollolol", 20);
Reason being my solution was very different from most others and I could have submitted without fixing these failing cases.