Skip to content

Commit b7f5287

Browse files
committed
🎉 [268] Missing Number
1 parent b4dc837 commit b7f5287

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

268/my_solution.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* @param {number[]} nums
3+
* @return {number}
4+
*/
5+
const missingNumber = (nums) => {
6+
7+
return;
8+
}
9+
10+
// missingNumber([3, 0, 1]) // 2
11+
// missingNumber([0, 1]) // 2
12+
// missingNumber([9,6,4,2,3,5,7,0,1]) // 8

268/solution.js

Whitespace-only changes.

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,15 @@
1616
- [22. Generate Parentheses](./22/)
1717
- [53. Maximum Subarray](./53/)
1818
- [121. Best Time to Buy and Sell Stock](./121/)
19+
- [191. Number of 1 Bits](./191/)
1920
- [198. House Robber](./198/)
2021
- [200. Number of Islands](./200/)
2122
- [213. House Robber II](./213/)
2223
- [217. Contains Duplicate](./217/)
2324
- [238. Product of Array Except Self](./238/)
25+
- [268. Missing Number](./268/)
2426
- [371. Sum of Two Integers](./371/)
27+
- [338. Counting Bits](./338/)
2528
- [394. Decode String](./394/)
2629

2730
---
@@ -51,7 +54,7 @@ iex ./.../solution.ex
5154

5255
Quick create in bash
5356
```ssh
54-
chapter=338 && mkdir ./$chapter && touch ./$chapter/my_solution.js && touch ./$chapter/solution.js && alias x="node ./$chapter/my_solution.js"
57+
chapter=268 && mkdir ./$chapter && touch ./$chapter/my_solution.js && touch ./$chapter/solution.js && alias x="node ./$chapter/my_solution.js"
5558
```
5659

5760
<!--

0 commit comments

Comments
 (0)