Tips Flashcards
1
Q
When might you need to use 2 pointers?
A
When dealing with arrays or strings
2
Q
When might you need to use sliding window?
A
When dealing with subarrays
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