Data Structures & Algorithms > Tips > Flashcards
When might you need to use 2 pointers?
When dealing with arrays or strings
When might you need to use sliding window?
When dealing with subarrays