7373 - [ Breadth-First Binary Tree Traversal] ( #breadth-first-binary-tree-traversal )
7474 - [ Depth-First Binary Tree Traversal] ( #depth-first-binary-tree-traversal )
7575 - [ Insert in MIN-HEAP] ( #insert-in-min-heap )
76+ - [ Remove from MIN-HEAP] ( #remove-from-min-heap )
7677 - [ Binary Search Tree Implementation] ( #binary-search-tree-implementation )
7778- [ Coding Interview Question and Answers] ( #coding-interview-question-and-answers )
7879 - [ Facebook Recruiting Portal Coding Interview Questions] ( #facebook-recruiting-portal-coding-interview-questions )
@@ -158,13 +159,10 @@ Example:
158159
159160Learn Big O. Make sure you give what would be the ` runtime complexity ` and ` memory complexity ` .
160161
161-
162-
163162- Array.push() is O(1) constant time complexity
164163- string.indexOf() search is O(n) linear time complexity
165164- for loop O(n) linear time complexity
166165
167-
168166### Big O Space complexity
169167
170168` Iterative functions ` take no extra memory and therefore, ` memory complexity ` is ` constant ` O(1).
@@ -538,20 +536,16 @@ Find all possible routes from `PHX` to `BKK`. Also then you can decide which pat
538536
539537Browser's JavaScript Engine (` Array.prototype.sort ` ) uses merge sort maximum time. Runtime complexity O(n logn), Memory complexity O(n) because we have to create new list. It uses divide-and-conquer algorithm! and also it is recursive.
540538
541-
542539https://www.youtube.com/watch?v=UxnyImctVzg
543540
544541![ ] ( https://i.imgur.com/YpQSB5J.png )
545542
546543** Merge Sort Algorithm**
547544
548-
549545![ ] ( https://i.imgur.com/5a8joFC.png )
550546
551-
552547![ ] ( https://i.imgur.com/yGrnQrB.png )
553548
554-
555549![ ] ( https://i.imgur.com/uu5aDiG.png )
556550
557551![ Merge Sort Algorithm] ( https://i.imgur.com/DIvX2OX.png )
@@ -567,7 +561,6 @@ Merge Sort Implementation Visualization:
567561- [ Merge Sort Implementation Question] ( https://codepen.io/roopkt/pen/ExWRRgP?editors=0010 )
568562- [ Merge Sort Implementation Answer] ( https://codepen.io/roopkt/pen/ZEeMPPL?editors=0010 )
569563
570-
571564##### Merge Sort In Place Algorithm
572565
573566![ ] ( https://i.imgur.com/sUAomvo.png )
@@ -580,7 +573,7 @@ Merge Sort Implementation Visualization:
580573 <span >See the Pen <a href =" https://codepen.io/roopkt/pen/yLMQvbv " >
581574 Merge Sort In-place Answer</a > by Rupesh Tiwari (<a href =" https://codepen.io/roopkt " >@roopkt </a >)
582575 on <a href =" https://codepen.io " >CodePen</a >.</span >
583- </p >
576+ </p >
584577
585578#### Find Median Values (With Merge Sort Algorithm)
586579
@@ -637,7 +630,7 @@ When Browser's are not using Merge sort they most of the time use Quick sort var
637630
638631### How many zeros in 1 Billion
639632
640- Answer: 9
633+ Answer: 9
641634
6426351,000,000,000 = 1 Billion
643636
@@ -784,6 +777,7 @@ Trade off or invest some memory to improve run time complexity. Suppose use Has-
784777![ ] ( https://i.imgur.com/wERnlTM.png )
785778
786779## Mandatory Algorithms
780+
787781All Mandatory algorithm source code [ download here] ( https://codepen.io/collection/BNaddx ) .
788782
789783### Binary Search on sorted Array Algorithm
@@ -800,7 +794,6 @@ All Mandatory algorithm source code [download here](https://codepen.io/collectio
800794
801795![ ] ( https://i.imgur.com/MbFK2KZ.png )
802796
803-
804797<p class =" codepen " data-height =" 300 " data-theme-id =" dark " data-default-tab =" js " data-slug-hash =" WNjegBp " data-user =" roopkt " style =" height : 300px ; box-sizing : border-box ; display : flex ; align-items : center ; justify-content : center ; border : 2px solid ; margin : 1em 0 ; padding : 1em ;" >
805798 <span >See the Pen <a href =" https://codepen.io/roopkt/pen/WNjegBp " >
806799 Merge Sort Algorithm</a > by Rupesh Tiwari (<a href =" https://codepen.io/roopkt " >@roopkt </a >)
@@ -847,22 +840,32 @@ All Mandatory algorithm source code [download here](https://codepen.io/collectio
847840 on <a href =" https://codepen.io " >CodePen</a >.</span >
848841</p >
849842
843+ ### Remove from MIN-HEAP
850844
851- ### Binary Search Tree Implementation
845+ ![ ] ( https://i.imgur.com/5gmtiBx.png )
852846
847+ <p class =" codepen " data-height =" 300 " data-theme-id =" dark " data-default-tab =" js,result " data-slug-hash =" PomwXJX " data-user =" roopkt " style =" height : 300px ; box-sizing : border-box ; display : flex ; align-items : center ; justify-content : center ; border : 2px solid ; margin : 1em 0 ; padding : 1em ;" >
848+ <span >See the Pen <a href =" https://codepen.io/roopkt/pen/PomwXJX " >
849+ Practice</a > by Rupesh Tiwari (<a href =" https://codepen.io/roopkt " >@roopkt </a >)
850+ on <a href =" https://codepen.io " >CodePen</a >.</span >
851+ </p >
852+
853+ ### Binary Search Tree Implementation
853854
854855![ ] ( https://i.imgur.com/QcEahdu.png )
855856
856857<p class =" codepen " data-height =" 300 " data-theme-id =" dark " data-default-tab =" js,result " data-slug-hash =" rNmBqWQ " data-user =" roopkt " style =" height : 300px ; box-sizing : border-box ; display : flex ; align-items : center ; justify-content : center ; border : 2px solid ; margin : 1em 0 ; padding : 1em ;" >
857858 <span >See the Pen <a href =" https://codepen.io/roopkt/pen/rNmBqWQ " >
858859 Binary Search Tree Implementation</a > by Rupesh Tiwari (<a href =" https://codepen.io/roopkt " >@roopkt </a >)
859860 on <a href =" https://codepen.io " >CodePen</a >.</span >
860- </p >
861+ </p >
861862
862863## Coding Interview Question and Answers
863864
864865### Facebook Recruiting Portal Coding Interview Questions
866+
865867Download solutions to [ Facebook Recruiting Portal Coding] ( https://www.facebookrecruiting.com/portal/interview_prep_hub?scrollToSection=CODING_EXERCISES ) Interview Questions [ here] ( https://codepen.io/collection/pgjZRG ) .
868+
866869### Graphs
867870
868871#### Depth First Search Question
@@ -1089,10 +1092,10 @@ Try `Binary Search`.
10891092 <span >See the Pen <a href =" https://codepen.io/roopkt/pen/dyvwPej " >
10901093 Reverse Linked List: Answer</a > by Rupesh Tiwari (<a href =" https://codepen.io/roopkt " >@roopkt </a >)
10911094 on <a href =" https://codepen.io " >CodePen</a >.</span >
1092- </p >
1095+ </p >
10931096
10941097- [ Question] ( https://codepen.io/roopkt/pen/mdWayxv?editors=0010 )
1095- -
1098+ -
10961099- [ Answer] ( https://codepen.io/roopkt/pen/dyvwPej?editors=0011 )
10971100
10981101#### Find the merge point of 2 Linked List
@@ -1114,4 +1117,3 @@ Try `Binary Search`.
11141117
11151118<script async src =" https://cpwebassets.codepen.io/assets/embed/ei.js " ></script >
11161119<script data-ad-client =" ca-pub-1700383344966810 " async =" " src =" https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js " data-checked-head =" true " ></script >
1117-
0 commit comments