Two pointers technique is only applicable to array data structures.
Yes
No
ESC
Close
The two-pointer technique can be applied to any iterable data structure, not just arrays. It can be used with linked lists and other structures as well.