Skip to content

Commit 3241a83

Browse files
committed
chore: fix
1 parent 5279259 commit 3241a83

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

‎README.md

+19
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
- [Find Median Values (With Merge Sort Algorithm)](#find-median-values-with-merge-sort-algorithm)
5151
- [Quick Sort](#quick-sort)
5252
- [Mathematics & Stats You should know](#mathematics--stats-you-should-know)
53+
- [How to initialize array of size n?](#how-to-initialize-array-of-size-n)
5354
- [How many zeros in 1 Billion](#how-many-zeros-in-1-billion)
5455
- [How many zeros in 1 Million](#how-many-zeros-in-1-million)
5556
- [Integer Division Without Using \* or /](#integer-division-without-using--or-)
@@ -104,6 +105,7 @@
104105
- [Linked List](#linked-list-1)
105106
- [Reverse linked list](#reverse-linked-list)
106107
- [Find the merge point of 2 Linked List](#find-the-merge-point-of-2-linked-list)
108+
- [How to Learn Binary Search Tree from zero to Hero?](#how-to-learn-binary-search-tree-from-zero-to-hero)
107109
- [References](#references)
108110

109111
> Coding interview question answers in JavaScript for Facebook, Amazon, Google, Microsoft or any company.
@@ -635,6 +637,17 @@ When Browser's are not using Merge sort they most of the time use Quick sort var
635637

636638
## Mathematics & Stats You should know
637639

640+
### How to initialize array of size n?
641+
642+
Example create an array containing numbers from 0 to 9.
643+
`[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]`
644+
645+
```js
646+
var y = new Array.from(Array(10).keys())
647+
```
648+
649+
![](https://i.imgur.com/mVBT7jl.png)
650+
638651
### How many zeros in 1 Billion
639652

640653
Answer: 9
@@ -1166,6 +1179,12 @@ Try `Binary Search`.
11661179
on <a href="https://codepen.io">CodePen</a>.</span>
11671180
</p>
11681181

1182+
## How to Learn Binary Search Tree from zero to Hero?
1183+
1184+
- Learn binary [search basics first](https://www.youtube.com/watch?v=GU7DpgHINWQ&list=PLl0KD3g-oDOHpWRyyGBUJ9jmul0lUOD80).
1185+
- Do all basic problems related to binary search [given in this link](https://codepen.io/collection/vBORpO).
1186+
1187+
11691188
## References
11701189

11711190
- http://btholt.github.io/four-semesters-of-cs/

‎binary-search-zero-hero.md

Whitespace-only changes.

0 commit comments

Comments
 (0)