Add Two Numbers Without The '+' Sign (Bit Shifting Basics)

preview_player
Показать описание
📹 Intuitive Video Explanations
🏃 Run Code As You Learn
💾 Save Progress
❓New Unseen Questions
🔎 Get All Solutions

Question: Add two integer values without using the "+" operator.

++++++++++++++++++++++++++++++++++++++++++++++++++

Рекомендации по теме
Комментарии
Автор

Table of Contents

The Problem Introduction 0:00 - 0:51
A Way To Think About Number Bases 0:51 - 3:56
Back To The Problem At Hand 3:56 - 4:16
Let's Add Some Numbers (Decimal, Base 10) 4:16 - 4:59
Let's Add Some Numbers (Binary, Base 2) 4:59 - 7:40
Bit Shifting Operators: The 'AND' -> '&' 7:40 - 9:41
Bit Shifting Operators: The 'XOR' -> '^' 9:41 - 11:36
Bit Shifting Operators: The 'Left Shift' -> '<<' 11:36 - 13:00
Our Strategy Is Complete 13:00 - 14:09
Walkthrough 14:09 - 16:58
Summary 16:58 - 17:40
Wrap Up 17:40 - 18:05


Note: This only works with positive integers

The code for this problem is in the description with many, many, comments to explain things.

BackToBackSWE
Автор

dude, you need to come back and teach us.
the world needs more people like you, blackpenredpen, the organic chemistry teacher, 3blue1brown, nick white, tech with tim, jenny it and many more.

minhazulislam
Автор

Hey man I just wanted to say I think these videos are immensely helpful. The way you explain your thought process on these complex but tiny subjects rashly helps a person change the way they think about code, not to mention learning the lingo of a SWE.
Also please don't ever lose the awkward endings and outtakes.

anniewiley
Автор

u r a good teacher bro!
Actually i came here because of your comment in leetcode lol :)

null
Автор

I took compsci and learned this but could never explain to my friend who couldn’t grasp it. She struggled the whole time.

This is such a great explanation and you are an excellent teacher.

rtothec
Автор

your explanation really helps people who were totally lost, like me.

baichen
Автор

Whenever I get stuck on a problem and see if your video is there, I'm relieved! Thank you man!

SR-wevl
Автор

Now I understand a lot of techniques that I wasn't able to understand before by following your channel, keep it up!

CodingForRealLife
Автор

I have spent literal years glossing over bitshifting because no explanation could come close to me understanding it. I now have at least a basic knowledge and a starting place. Thank you!

cuteypatootie
Автор

You are such a good teacher! Thanks for breaking down the basics and emphasizing the details!

ShuangyiHu
Автор

This is the ultimate guide to this hell of bits manipulation. Thank you so much.

datle
Автор

The best teaching that I have seen in my life till now is yours .

donurukirankumarreddy
Автор

Genuinely explained. Excellent, keep doing your work. You`re a great teacher.

musicvoice
Автор

Your explanations are always so clear and engaging.

PheezxCoding
Автор

You are awesome! Your presentation is so clear and easy to understand!

xulinazrx
Автор

Explanation is so good that we won't need to write code for this in interview - just a dry-run with example would do.

vS-xvvm
Автор

My Brother, since college back in 1999, I haven't had to use it. But, you have refreshed my way of thinking. Thanks and continue to progress forward!!!!

supubmy
Автор

This is the best explanation I've ever seen! Thanks a lot!!!

AlexanderFilippov-ua
Автор

You are extremely talented at teaching this stuff, I have struggled with bitwise operations for a while now, however after watching your explanation I was able to implement this myself, which is a major break through.
Thank you for this video!

thevd
Автор

Dude keep it up, i've learned more from you then my attempt at graduate school lol

hoboshenanigans