Binary Search Algorithm - Code walk-through and Complexity Analysis

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 9

  • @gajendhiranm3572
    @gajendhiranm3572 3 роки тому +1

    need these kind of videos daily !!

  • @sudarshanr1914
    @sudarshanr1914 3 роки тому

    Bruh,
    Keep posting,
    You are awesome..

  • @money1234359
    @money1234359 3 роки тому

    Well thought out. Great analysis that helped me get a indepth understanding.

  • @BlueTreeCode
    @BlueTreeCode  2 роки тому

    Hey Everyone, just a quick note at the timestamp 3:40.
    "L" in the formula "(L+R)/2" should be "Mid Index + 1" or (1billion+1). With that being said, this will not make a difference to the general idea of an overflow existing.

  • @vasilizaitsev7246
    @vasilizaitsev7246 3 роки тому

    its great course.

  • @mohdymi
    @mohdymi 2 роки тому

    When I first saw that Analysis part, I was confused and didn't understand it first time, but when that happened, I realised that this thing is impossible,
    Because the one who taught this analysis is (Blue Tree Code), therefore I created an equation that says:
    one time watching (blue tree code) teaching = %100 understading, with gratitude
    and if that didn't happen then
    2-4 times watching (btc) teaching = %100 understading, with gratitude as well
    and as you notice, they all lead to the same result, but with different arguments
    so no matter what that subject is, if not understood from the first time, difinetly will be understood second time
    and that equation was right
    After a few times watching this again, I understood that 😂😂
    *Note, that equation is only if watching btc, no one else*