But is that mean slow fast pointer only can be applied in int array. Because we move based on the value inside the int array. If it is in string/char array, we can't move base on the value, so would we still use slow fast but using move 1 in slow and move 2 in fast?
But is that mean slow fast pointer only can be applied in int array. Because we move based on the value inside the int array. If it is in string/char array, we can't move base on the value, so would we still use slow fast but using move 1 in slow and move 2 in fast?