Search in Rotated Sorted Array - LeetCode 33 - Python

preview_player
Показать описание
Explaining Search in Rotated Sorted Array in Python!😍

@1:58 - Example
@3:39 - Code
@8:15 - Code walk-through with example

Music: Bensound

Lemme know if you have ANY questions or comments at alll!:)

Рекомендации по теме
Комментарии
Автор

Thank you. I finally understood the solution. You have explained it very well.

racecarjonny
Автор

Thank you so much, this is my 4th explanation on this topic and finally i found the best explanation
God bless you.

Scizzor
Автор

Very well explained deepti. Understood really well.Keep up the good work deepti mam.👍🏻😀

harshav
Автор

why do we need to check if it is sorted?

rahulchowdhury
Автор

what if we intialize low= 0, high= nums.size()-1,

and then jsut check wether nums[low]== target ot nums[high]== target if yes return the index and if not increment the low by 1 and decrease the high by 1

namandubey