LeetCode 67 - Add Binary - JavaScript - Solution

preview_player
Показать описание
How do you feel about this question ? This is a problem given in a Tesla coding interview. Are you ready to make Elon Musk proud? Lets find out !

Timestamps :
0:00 - Introduction
0:10 - Questions For You
0:47 - Problem Reading
1:05 - Problem Prerequisites How To Read Binary
2:40 - Problem Definition Drawing
5:20 - Problem Solution in JS
13:20 - Final :)
Рекомендации по теме
Комментарии
Автор

Thanks all for the support. I love you :)

LeadEngineer
Автор

Amazing content! Thank you, Mr. Manolov!

tochkaborislavova
Автор

hello, hope you would read this, why are we subtracting the "0" inside the while loop,
if(firstLength >=0 ){
totalSum += a[firstLength--] - "0" }
I kinda understand that the "0" in ASCII would be 48 but how would JS know that and what's the logic behind it ?

mohamadnagiebrahim
Автор

I will change my gender to increase the female population of the channel

GeorgiGospodinov
join shbcf.ru