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
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
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
So,you basically binary searched to the chapter of the book where you have contributed.Nicely done Milan!!!
I was the Tech editor 😅 But the writing is all Dino.
Please make full DSA series in c# ❤🎉
Maybe, maybe
@@MilanJovanovicTech please say might be
@@MilanJovanovicTechit will be a blessing a DSA Course in C# by you ✨🙏🏼
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
@@user-dv3il9fj9h mentioned it in the benchmark part
Dino Esposito and Francesco Balena top software developer!!!!
Great guys!
Thank you MILAN!
Sure thing :)
I would've guessed that the compiler is clever enough to optimize / 2 to >> 1. Apparently it wasn't.
Explanation: x.com/andersforsgren/status/1827796305944416568
Very conceptual video
Thanks!
arr.for what is tool?
What?
yessss DSA
Should I do more?
@@MilanJovanovicTech yesss bring back the nightmare on BFS DFS or somesort, promise will takcle em this time 😂
12:17 45 is greater than 40
Your video thumbnail has a bug ... mid point is wrong ....
Oh no
YAAC (Yet another algo channel)
Is that a term? First time I see it
way to DSA
Thank you 💪
nice :)
Thanks!