Sunday, March 4, 2018

Leetcode 424: Longest repeating character replacement

March 4, 2018


Introduction


It is the first time I practiced mock interview with a peer and the mock interview lasted more than 2 hours. One of algorithms we discussed is Leetcode 424: Longest repeating character replacement.


Algorithm analysis


I have practiced the algorithm find smallest substring containing all unique characters on mock interview so many times. So I just apply sliding window technique to the algorithm as well.





No comments:

Post a Comment