Binary Search

Where can we use BInary Search approach?
Is it use only for search purpose?
Best resource

you can refer ‘codencode’ channel ‘binarysearch’ playlist on youtube .

well i am not 100% sure whether i am correct or not but i think that switch case is one of the example of the binary search tree the coding whicg is behind the switch case may be binary tree


isn’t switch case a simple for many if else if else statements? where does binary search fall in?

I thought it sounded a bit odd, but apparently it is indeed A Thing: