Skip to content
Home » Archives for leetcode-solution.com » Page 2

leetcode-solution.com

Lintcode 1375 Substring With At Least K Distinct Characters

https://www.lintcode.com/problem/1375 Example 1: Example 2: This problem can also use the two pointers method we talked about in https://leetcode-solution.com/leetcode-209-minimum-size-subarray-sum-2/ with time complexity of O(n) The idea is the same, iterate the left pointer, at each iteration, find the right pointer… Read More »Lintcode 1375 Substring With At Least K Distinct Characters