Запитання 4
In which scenario is the two-pointer technique especially useful?
Варіанти відповідей
When the input data structure has predictable dynamics, such as being sorted
When working with completely random and unsorted data only
When no comparisons between elements are required
When the goal is to increase algorithmic complexity