Get the source code for this video for FREE → the-dotnet-weekly.ck.page/binary-search Want to master Clean Architecture? Go here: bit.ly/3PupkOJ Want to unlock Modular Monoliths? Go here: bit.ly/3SXlzSth
@AslamNazeerShaikh2 ай бұрын
Please make full DSA series in c# ❤🎉
@MilanJovanovicTech2 ай бұрын
Maybe, maybe
@MohammedMufish_Shaikh2 ай бұрын
@@MilanJovanovicTech please say might be
@17Kalash2 ай бұрын
@@MilanJovanovicTechit will be a blessing a DSA Course in C# by you ✨🙏🏼
@genadyshmunik6041Ай бұрын
@@MilanJovanovicTechdeep and extensive, I will buy one for sure!
@GiorgiChikovani_FromGeorgiaАй бұрын
@@MilanJovanovicTech +1 Let's do it
@lalithmahadev50272 ай бұрын
So,you basically binary searched to the chapter of the book where you have contributed.Nicely done Milan!!!
@MilanJovanovicTech2 ай бұрын
I was the Tech editor 😅 But the writing is all Dino.
@fredericmerouze4876Ай бұрын
great video milan :) ! it's possible to have more content about Algorithm (binary tree etc) ?
@MilanJovanovicTechАй бұрын
Yes, definitely
@nouchance2 ай бұрын
Thank you MILAN!
@MilanJovanovicTech2 ай бұрын
Sure thing :)
@meharshahbaz27152 ай бұрын
Very conceptual video
@MilanJovanovicTech2 ай бұрын
Thanks!
@10Totti2 ай бұрын
Dino Esposito and Francesco Balena top software developer!!!!
@MilanJovanovicTech2 ай бұрын
Great guys!
@glickyaron94902 ай бұрын
great video. If it is possible to store the data in hash table. it will give a search complexity of O(1).
@MilanJovanovicTech2 ай бұрын
Yes, it's possible
@orestpavlenko5652 ай бұрын
Did you install some extension colors for intellisense or it could be setup in Visual Studio?
@MilanJovanovicTech2 ай бұрын
ReSharper
@r75shellАй бұрын
Have you really tried to benchmark recursive version? Because if C# has tail-recursion optimization, it should produce same code as while loop implementation.
@MilanJovanovicTechАй бұрын
Haven't tried the recursive approach
@CLeovison2 ай бұрын
Hi Milan, I hope that you will release a video on how start making an minimal api in the future. Thank you thank you so much
@MilanJovanovicTech2 ай бұрын
Noted!
@dhruvmathur53152 ай бұрын
Hey Milan, awesome stuff as always, can you please make a video on Durable functions please, I saw your video on azure functions and I think that's the next step no ?
@MilanJovanovicTech2 ай бұрын
Noted
@ЛюбомирГеоргиев-о5й2 ай бұрын
Hi Milan, you have a bug in the Binary search code. This bug is very sneaky and widely speeded. Imagine input collection is with 2_000_000 elements and you are looking for the last element (or in upper part). When you sum left and right boundary the mid will overflow. There is very simple workaround using (right - left boundary) /2
@MilanJovanovicTech2 ай бұрын
@@ЛюбомирГеоргиев-о5й mentioned it in the benchmark part
@usEr-oCt-76Ай бұрын
But sorting is also part of the search which saves the time of the actual search.
@MilanJovanovicTechАй бұрын
Sort while inserting
@krccmsitp28842 ай бұрын
I would've guessed that the compiler is clever enough to optimize / 2 to >> 1. Apparently it wasn't.