You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Route Between Nodes: Given a directed graph, design an algorithm to find out whether there is a route between two nodes.](#route-between-nodes-given-a-directed-graph-design-an-algorithm-to-find-out-whether-there-is-a-route-between-two-nodes)
66
-
-[Minimal Tree: Given a sorted increasing order array with unique integer elements, write an algorithm to create a binary search tree with minimal height.](#minimal-tree-given-a-sorted-increasing-order-array-with-unique-integer-elements-write-an-algorithm-to-create-a-binary-search-tree-with-minimal-height)
65
+
-[Minimal Tree: Given a sorted increasing order array with unique integer elements, write an algorithm to create a binary search tree with minimal height](#minimal-tree-given-a-sorted-increasing-order-array-with-unique-integer-elements-write-an-algorithm-to-create-a-binary-search-tree-with-minimal-height)
67
66
-[References](#references)
68
67
69
68
## Important thing to remember
@@ -74,13 +73,11 @@
74
73
75
74
## Working with this repo
76
75
77
-
- Download or clone in local machine.
76
+
- Download or clone in local machine.
78
77
- Run `npm ci`
79
78
- Then run individual file to see result on console.
80
79
- You should use `node filename` in console to see results.
81
80
82
-
83
-
84
81
## What to practice?
85
82
86
83
Make sure you know Computer science [basic data structures](#data-structures-you-should-know). Also you should be aware of [fundamental algorithms](#fundamental-algorithms-you-should-know).
@@ -435,8 +432,8 @@ Graph represents network. It has Nodes, Vertices and Edges.
@@ -571,7 +566,17 @@ abstract data type (ADT) - ADT is defined as a user point of view of a data type
571
566
572
567

573
568
574
-
#### Minimal Tree: Given a sorted increasing order array with unique integer elements, write an algorithm to create a binary search tree with minimal height.
569
+
#### Minimal Tree: Given a sorted increasing order array with unique integer elements, write an algorithm to create a binary search tree with minimal height
570
+
571
+
**What is Minimal Tree?**
572
+
573
+

574
+
575
+
**Minimal Tree Simulation**
576
+
577
+

578
+
579
+
[Answer for Creating Minimal Tree Interview Question](src/interview-questions/graph/2-minimal-bs-tree.mjs)
0 commit comments