Minimum Element in a Sorted & Rotated Array | DSA | Programming Tutorials | GeeksforGeeks

preview_player
Показать описание
Our courses :

This video is contributed by Rahul Singla

Please Like, Comment, and Share the Video among your friends.

Install our Android App:

If you wish, translate into the local language and help us reach millions of other geeks:

Follow us on Facebook:

And Twitter:

Also, Subscribe if you haven't already! :)
Рекомендации по теме
Комментарии
Автор

But it will take O(n) time in duplicates . Then, how it is in O(logn) ??

jaiho
Автор

Is this solution considering duplicate elements?

yutaitadori
Автор

This is not the proper explanation
1) Edge cases were not explained
2) what if in some case mid-1 does not exist similarly in some case mid+1 does not exist
3) Proper reason not given for duplicate values.
This video needs to be improved.

deveshjoshi
Автор

Very good explanation . But 5 4 3 2 1 is a wrong example (it is not a Rotated sorted Array)

ithilak
Автор

Good explaination sir, BUT
we cant find minimum value of reverse array ( i.e {5, 4, 3, 2, 1})

sachinshetti
Автор

When mid = 0 what will be arr[mid - 1]?

vishnuvardhanreddy
Автор

needed much better person to explain this question . he couldnt explain it properly . seems he is confused and doing anything

sabhyasachini
Автор

Plzz resume guess the output series.. they are more useful than this

lakshmikandhi
welcome to shbcf.ru