Запитання 3
Which of the following best describes the 'inward traversal' strategy in two-pointer algorithms?
Варіанти відповідей
Pointers start at opposite ends and move toward each other
Both pointers start at the same position and move forward together
One pointer moves first, and then the second starts upon meeting a condition
Pointers start randomly and jump to different positions based on values