Запитання 2
What is the main advantage of using two pointers instead of nested loops in certain algorithms?
Варіанти відповідей
It reduces time complexity from O(n²) to O(n)
It increases memory usage
It simplifies the code but requires more computing time
It replaces the need for any comparisons