287. Find the Duplicate Number - Fast & Slow Pointer - JavaScript

Поділитися
Вставка
  • Опубліковано 28 гру 2024

КОМЕНТАРІ • 1

  • @domw2391
    @domw2391 9 місяців тому

    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?