Explanation for the article: www.geeksforgeeks.org/search-a... This video is contributed by Harshit Jain. Read More: www.geeksforgeeks.org/search-...
Пікірлер: 32
@raghavchadha91337 жыл бұрын
clear it with some examples ...reading algo we will do it ourselves ,,
@GeeksforGeeksVideos7 жыл бұрын
Thanks for the feedback. We have shared this with our contributor. :)
@akshaydwivedi9355 жыл бұрын
you are just making a simple algo sophisticated by the way you explain
@vaishnavigoteti88414 жыл бұрын
Great Job Geeksforgeeks! this video is certainly not for the beginners, but for intermediate level programmers. The algorithm was very clearly demonstrated.
@pman-codes4 жыл бұрын
How can you pass 0 and n-1 as low and high and compare them with the mid where the array is pivoted in the first place?
@shwetadk19865 жыл бұрын
Giving an example would definitely be better but your explaination is very good, much better than just reading the text. Thanks. Keep making such videos.
@subham-raj4 жыл бұрын
*This is what happens when you memorize*
@sainathpatil68933 жыл бұрын
in the solution on last line return search(arr, l, mid - 1, key); -- is it required ?
@amanjaiswal48472 жыл бұрын
7:28 high < low can any one explain what does it actually mean?
@techwithrajdeep76333 жыл бұрын
why it was given if l>h
@tcob78vaibhavwable952 жыл бұрын
can we have more vedios on DE Shaw interview preperation
@SaifurRahman925 жыл бұрын
Intern ka kaam hai ye pakka.
@kaushikkumar11392 жыл бұрын
Thank you for the explanation!
@satyamgupta52343 жыл бұрын
Why are we checking from first element to key element ? How ??
@praveenchouhan63884 жыл бұрын
nice explaination!!!!!!!!!
@saikumarmadhadi4736 жыл бұрын
finding pivot will itself take O(n) in worst case, so i guess linear search will also be a considerable option
@spicytuna085 жыл бұрын
i agree. the logic is too complex for O log n method.
@gsb223 жыл бұрын
@@spicytuna08 nope, finding of pivot would be done in O(logn) since we would employ binary search there as well.
@jaatharsh3 жыл бұрын
hey GFG thanks fr the video
@akankshagupta38816 жыл бұрын
You just read the algorithm that's it , there is no use of any of your videos. This is very disappointing from your side "geeksforgeeks"
@spicytuna085 жыл бұрын
finding pivot code is too complex. prone for an error. if traversing every element is O(n), use easier method to get a pivot.
@gsb223 жыл бұрын
if you are going to do find pivot using O(n) why do this at all, Simply run linear search then..
@adityapalavajjhala18413 жыл бұрын
ahhhhh
@vidurbhardwaj40015 жыл бұрын
I think you are confused by yourself
@ragas_3 жыл бұрын
GfG should just give up this stuff. Extremely confusing
@vidurbhardwaj40015 жыл бұрын
wtf type of explaination
@hemant_malav3 жыл бұрын
Isse Accha aap Hindi me explain kare to jada acche se samaj aayega
@alperozdamar5175 жыл бұрын
So disappointing. Without explanation reading code line by one doesn't make any sense. Everybody can do it! You need to add clear explanations and examples.
@karimfarhouti2296 жыл бұрын
while the array is sorted we don't have to do any search i think ,here's a simple fun int fun(int arr[],size_t t_size,unsigned int n) { if (n