My answers to some coding questions asked in tech interviews. These are organized by solution technique.
NOTE: Most of the solutions include unit test with JUnit. If you want the input samples/examples of any coding question, please review the corresponding unit test in the test folder.
Coding questions that are solved with the sliding window technique:
- Longest substring with maximum k distinct characters. (Solution and Unit Tests)