Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions blind75/binary/sum-of-two-integers/answer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Title

## STEP1

### 発想

### 想定されるユースケース

### 何が分からなかったか?

```javascript
const getSum = function(a, b) {
const except_carry = a ^ b
const carry = (a & b) << 1
return except_carry + carry
};
```

```javascript
// a is positive
// b is positiveの時
const getSum = function(a, b) {
while (b !== 0) {
const sum_without_carry = a ^ b
const carry = (a & b) << 1
a = sum_without_carry
b = carry
}
return a
};
```

## STEP2

```javascript
```

## STEP3

```javascript
```

## 感想

### コメント集を読んで

## 他の人のPRを読んで

## その他の方法

### コードの良し悪し

* `*0`

* `*1`

## 調べたこと