Find the Duplicate Number - Leetcode 287 - Python

preview_player
Показать описание
- - - - - - - - - - - - - - - - - - - - - -
This video talks about solving a leetcode problem called Decode Ways
- - - - - - - - - - - - - - - - - - - - - -

- - - - - - - - - - - - - - - - - - - - - -

#python #leetcode #coding #programming
Рекомендации по теме
Комментарии
Автор

Hello Guys, DON'T FORGET To LIKE & Subscribe. Press the Bell icon🔔for notification :)

techerror
Автор

what if the value of nums[fast]=9 when nums[nums[fast]] will result arrayindexoutofbounds if the nums.length=5 where 9>5??


Constraints:

1 <= n <= 105
nums.length == n + 1
1 <= nums[i] <= n



Here they have said like 1<=nums[i]<=n

It is little bit tricky to find the solution of using Tortoise and hare here, , But anyway thanks brother...

vigneshs
join shbcf.ru