M
M
MeMoJlor2021-11-14 18:37:13
Algorithms
MeMoJlor, 2021-11-14 18:37:13

What is the algorithm here?

Please explain how from a=11, b=1, 100 comes out?
It is said that this is the sum in the form of a binary string.

Input: a = "11", b = "1"
Output: "100"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2021-11-14
@MeMoJlor

Binary notationBinary, with zerosDecimal
eleven0113
one001one
1001004

3 + 1 = 4

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question