2D Binary Search - Codingame

preview_player
Показать описание
This is a video editorial on the problem 'Shadows of the Knight'. It requires us to use 2D binary search to find the location of the bomb. We solve the problem with the help of an example.

Binary Search:
Problem Statement:
Code:
Рекомендации по теме
Комментарии
Автор

Yes, thanks for the walkthrough. CodinGame has been really helpful in learning programming. I also like how you correct yourself in your video - shows we're all human :)

adedayosamuel
Автор

This video is pure gold thanks for sharing :)

antonioflores
Автор

nop... right on the last step is 11-1 = 10( since it is on the left). Isn't it ?

pradipnitw
Автор

The last case, I didn't really understand, why r changes to 11, ?

dibyojyotibhattacharjee
Автор

8:17 whoa!....
I like your selection of problems.

pavithranravichandiran
Автор

It was 1, 10 Instead of 1, 9! Overall thanks for the video. :) Please keep uploading.

ezpzakash
Автор

So, 13 minute long video, to say "2D binary means you enumerate each axis independently" :-D

frantapicmaus
Автор

I guess the complexity will be O(log (M or N which is greater)) as you are jumping both directions at the same time

shravankumar
Автор

you'll soon hit 1mn subs. Just 999, 998 more

tilakmadichettitheappdeveloper
Автор

I'm literally talking with Indian accent

parsanoori
Автор

what is your codingame profile name
share link bro

ShivamYadav-myyh
Автор

bhaisahab where is ur question ur directly jump to solution

meditationforall