Find the length of the shortest substring that contains at least k different characters — and write the test cases, empty input included.
Find the length of the shortest substring that contains at least k different characters — and write the test cases, empty input included.
Opens with the full question.