Find Minimum in Rotated Sorted Array - Leetcode 153 - Binary Search (Python)

  Рет қаралды 2,360

Greg Hogg

Greg Hogg

5 ай бұрын

Master Data Structures & Algorithms for FREE at AlgoMap.io/
Code solutions in Python, Java, C++ and JS for this can be found at my GitHub repo here: github.com/gahogg/Leetcode-So...
Complete DSA Pathway Zero to Hero: • Data Structures & Algo...
Please check my playlists for free DSA problem solutions:
• Fundamental DSA Theory
• Array & String Questions
• 2 Pointers Questions
• Sliding Window Questions
• Binary Search Questions
• Stack Questions
• Linked List Questions
• Tree Questions
• Heap Questions
• Recursive Backtracking...
• Graph Questions
• Dynamic Programming (D...
My Data Science & ML KZbin Playlist: • Greg's Path to Become ...
Learn Python and Data Science FASTER at mlnow.ai :)
University of California DSA Certificate on Coursera: bit.ly/3CYR6wR
Binary Search - • Binary Search - Leetco...
Best Courses for Analytics:
---------------------------------------------------------------------------------------------------------
+ IBM Data Science (Python): bit.ly/3Rn00ZA
+ Google Analytics (R): bit.ly/3cPikLQ
+ SQL Basics: bit.ly/3Bd9nFu
Best Courses for Programming:
---------------------------------------------------------------------------------------------------------
+ Data Science in R: bit.ly/3RhvfFp
+ Python for Everybody: bit.ly/3ARQ1Ei
+ Data Structures & Algorithms: bit.ly/3CYR6wR
Best Courses for Machine Learning:
---------------------------------------------------------------------------------------------------------
+ Math Prerequisites: bit.ly/3ASUtTi
+ Machine Learning: bit.ly/3d1QATT
+ Deep Learning: bit.ly/3KPfint
+ ML Ops: bit.ly/3AWRrxE
Best Courses for Statistics:
---------------------------------------------------------------------------------------------------------
+ Introduction to Statistics: bit.ly/3QkEgvM
+ Statistics with Python: bit.ly/3BfwejF
+ Statistics with R: bit.ly/3QkicBJ
Best Courses for Big Data:
---------------------------------------------------------------------------------------------------------
+ Google Cloud Data Engineering: bit.ly/3RjHJw6
+ AWS Data Science: bit.ly/3TKnoBS
+ Big Data Specialization: bit.ly/3ANqSut
More Courses:
---------------------------------------------------------------------------------------------------------
+ Tableau: bit.ly/3q966AN
+ Excel: bit.ly/3RBxind
+ Computer Vision: bit.ly/3esxVS5
+ Natural Language Processing: bit.ly/3edXAgW
+ IBM Dev Ops: bit.ly/3RlVKt2
+ IBM Full Stack Cloud: bit.ly/3x0pOm6
+ Object Oriented Programming (Java): bit.ly/3Bfjn0K
+ TensorFlow Advanced Techniques: bit.ly/3BePQV2
+ TensorFlow Data and Deployment: bit.ly/3BbC5Xb
+ Generative Adversarial Networks / GANs (PyTorch): bit.ly/3RHQiRj
Become a Member of the Channel! bit.ly/3oOMrVH
Follow me on LinkedIn! / greghogg
Full Disclosure:
Please note that I may earn a commission for purchases made at the above sites! I strongly believe in the material provided; I only recommend what I truly think is great. If you do choose to make purchases through these links; thank you for supporting the channel, it helps me make more free content like this!

Пікірлер: 14
@GregHogg
@GregHogg 14 күн бұрын
Master Data Structures & Algorithms For FREE at AlgoMap.io!
@justinpardo-mw8wy
@justinpardo-mw8wy 4 күн бұрын
this was so good i tried looking at other explanations but it felt like it went against my intuition for solving the problem this was perfect
@nav213
@nav213 10 күн бұрын
First of all thank you so much for the videos! I am a big fan. Secondly, it's one of those questions that you need to memorize because I couldn't get it when I tried to do it by myself.
@GregHogg
@GregHogg 10 күн бұрын
That's so sweet! And yeah this one is definitely tricky lol
@hinocenciopaulo
@hinocenciopaulo Ай бұрын
That was a beautiful approach, so precise and simple. Excellent job sir. Thank you for sharing.
@GregHogg
@GregHogg Ай бұрын
Very glad you enjoyed it!
@skyaqa2108
@skyaqa2108 4 ай бұрын
Hi there, in one of your videos you mentioned the order of types of ds we should follow and solve because they are prerequisite for others, why you don't do the same, for example start with 5 problem from the first one to ... 5 problem of last one(dyn programming was the last one, i remember), and in the end of solving each problem recommend 5 similar important problems for practice It would be really helpful if you do that instead of just randomly solving problem, inform us about what you think about this idea Thanks
@adithyar3160
@adithyar3160 3 ай бұрын
luvd it mate
@GregHogg
@GregHogg 3 ай бұрын
Super glad to hear it ☺️
@DeepakGupta-zz1vf
@DeepakGupta-zz1vf 5 ай бұрын
All sorted rotated arrays have one thing in common that is there will be atleast one sorted half for sure This can be proved by taking 5 elements and all its possible rotations and then see how left,mid and right varies Post that we will come to the above mentioned conclusion Now using this technique one can easily solve any variant problem related to sorted rotated array
@anirbandas12
@anirbandas12 5 ай бұрын
Make a video for the find target when sorted arr is rotated problem too
@sharukhsm007
@sharukhsm007 3 ай бұрын
Why is M = 6 when it's actually 7 in your example?
@GregHogg
@GregHogg 3 ай бұрын
Sorry did I get something wrong here?
Number of Islands - Leetcode 200
0:51
Greg Hogg
Рет қаралды 69 М.
I'm Excited To see If Kelly Can Meet This Challenge!
00:16
Mini Katana
Рет қаралды 31 МЛН
Это реально работает?!
00:33
БРУНО
Рет қаралды 4 МЛН
Son ❤️ #shorts by Leisi Show
00:41
Leisi Show
Рет қаралды 8 МЛН
Они так быстро убрались!
01:00
Аришнев
Рет қаралды 2,4 МЛН
Best way to master DSA with Python !!! 😀😀😀
0:53
Code Keen
Рет қаралды 50 М.
Be a Python Pro with Enumerate
0:55
Rob Mulla
Рет қаралды 1 МЛН
No Sound Leetcode 33: Search in Rotated Sorted Array
0:40
ExtremeProgrammer
Рет қаралды 16
Stop, Intel’s Already Dead! - AMD Ryzen 9600X & 9700X Review
13:47
Linus Tech Tips
Рет қаралды 1 МЛН
The Brief History of Coding and Programming Languages - Algoworks
2:06
Algoworks Solutions Inc
Рет қаралды 4,4 М.
Binary Search Algorithm - Computerphile
18:34
Computerphile
Рет қаралды 158 М.
theCUBE live coverage of Dell: Making AI Real with Data | Dell Promo
0:17
SiliconANGLE theCUBE
Рет қаралды 7 М.
I'm Excited To see If Kelly Can Meet This Challenge!
00:16
Mini Katana
Рет қаралды 31 МЛН