<div class="leaf flex"><div class="inner justify"><p>Master the [sliding window technique](<a rel="nofollow" href="https://discuss.leetcode.com/topic/30941/here-is-a-10-line-template-that-can-solve-most-substring-problems">https://discuss.leetcode.com/topic/30941/here-is-a-10-line-template-that-can-solve-most-substring-problems</a> that applies to many substring problems.)</p><p>When you are given two strings to process, it is common to have one index per string (pointer to traverse/compare the both of them