Add Binary (LeetCode) | Adding Binary Numbers as Strings Explained

Sdílet
Vložit
  • čas přidán 30. 06. 2024
  • Link to the Code: gist.github.com/JyotinderSing...
    Link to the Problem: leetcode.com/problems/add-bin...
    Link to my GitHub: github.com/JyotinderSingh
    Link to my Website: jyotindersingh.com/
    Timestamps:
    00:00 - Problem Introduction
    00:54 - Quick Intro to Number Systems
    03:59 - Algorithm Explanation
    05:23 - Coding Walkthrough
    _______________________________________
    Some great channels to learn more:
    Tushar Roy: / tusharroy2525
    Errichto: / @errichto
    Nick White: / @nickwhite
    Kevin Naughton Jr: / @kevinnaughtonjr
  • Věda a technologie

Komentáře • 28

  • @khushijain8146
    @khushijain8146 Před 2 lety +10

    This is one of the best videos for this problem's solution. I loved the explanation.

    • @JyotinderSingh
      @JyotinderSingh  Před 2 lety

      Glad to hear that! Please consider subscribing for more content!

  • @6112arjun
    @6112arjun Před 2 lety +2

    Excellent explanation man. Liked and subbed

  • @melanieprevot4926
    @melanieprevot4926 Před rokem

    This is indeed the clearest explanation! Thank you!

  • @kajalgoyal7062
    @kajalgoyal7062 Před 2 lety +1

    Easiest Explanation found!! Thanks

  • @jagrutitiwari2551
    @jagrutitiwari2551 Před 2 lety +1

    Amazing video. Keep going.

  • @teeshadembla6920
    @teeshadembla6920 Před 4 měsíci

    amazing explanation!!!

  • @amirkazi
    @amirkazi Před 2 lety +1

    Excellent explanation.

  • @jimmyopot1972
    @jimmyopot1972 Před 3 lety +4

    I didn't study CS on campus, thanks for helping me understand how binary works.

    • @JyotinderSingh
      @JyotinderSingh  Před 3 lety

      I'm glad you found this useful! Be sure to subscribe for more content!

  • @technologicalvivek7510
    @technologicalvivek7510 Před 9 měsíci +1

    Very nice explanation brother

  • @poojasugandhi6295
    @poojasugandhi6295 Před 2 lety +1

    Literally best video, I checked many but liked your video explanation "the best".

  • @devbhattacharya153
    @devbhattacharya153 Před 2 lety

    Thanks sir a lot for helping!!!

  • @laisdeghaide9853
    @laisdeghaide9853 Před 3 lety +2

    Next week is my Facebook interview (the last one and I'm kinda nervous), you're helping me a lot. Thank you.

    • @JyotinderSingh
      @JyotinderSingh  Před 3 lety +1

      I'm so glad to hear that! I'll definitely try to squeeze in a couple more videos onto the channel by then!
      Best of luck!

    • @VillageJoker
      @VillageJoker Před 2 lety

      how did your interview go Laìs

  • @anands3119
    @anands3119 Před rokem +1

    Very useful....'

  • @harsimrankaur9566
    @harsimrankaur9566 Před 2 lety +1

    Well explained!

    • @JyotinderSingh
      @JyotinderSingh  Před 2 lety

      Thanks a lot! Be sure to subscribe for more videos!

  • @gta6515
    @gta6515 Před 3 lety +1

    Hi, could you please tell why have you took i and j as a.size()-1 and b.size()-1 respectively, shouldn't their values be a.size() and b.size() . As indexing if string starts from 1 and not 0 . Could you please clear this?

    • @JyotinderSingh
      @JyotinderSingh  Před 3 lety +2

      i and j refer to the total number of traversable elements in each of the strings. As you see we start inside the while loop from the rightmost index of each of the strings. Had the value of i or j been a.size() and b.size() respectively - it would have led to an index out of bounds exception, since the last element of the string is at position (size - 1)

  • @tarunbehera934
    @tarunbehera934 Před rokem

    why "i--" and "j--" are decremented inside the array 'a' and 'b' and
    Not just before the ending of the while loop??

  • @20-213K.abhilasha
    @20-213K.abhilasha Před 24 dny

    we cannot use it as a[i] & b[j] it is not an array

  • @abelyohannes2226
    @abelyohannes2226 Před rokem

    Bro can u help me out on a lil code its for school project please just hint bro

  • @mohitvashisth2933
    @mohitvashisth2933 Před 2 lety +1

    ascii 1 is represent as 49 not 31

    • @awful999
      @awful999 Před rokem

      0x31 in hex is ascii 1