Skip to content

Commit e92e856

Browse files
authored
Cleaned the document and clarified some concepts.
1 parent 80c121d commit e92e856

File tree

1 file changed

+22
-27
lines changed

1 file changed

+22
-27
lines changed

README.md

Lines changed: 22 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,12 @@ No need to figure out all the details.
6565

6666

6767
# Concepts:
68+
Now we look into the main topics that are being covered in most interviews/coding challenges. We also look into the patterns that appear in solutions which can be used in new problems. The goal is to understand the fundamentals and try to use them to solve problems.
69+
70+
71+
72+
## Big O Notion:
6873

69-
Big O Notion:
70-
=============
7174

7275
As the input to an algorithm increases, the time required to run the algorithm
7376
may also increase.
@@ -113,15 +116,14 @@ Int , float 4 bytes
113116
char 1 byte
114117

115118

116-
# Comparison
117-
#algorithms
119+
## Comparison
118120

119121
Finding the smallest of n numbers:(n-1)
120122
Finding the biggest of n numbers:(n-1)
121123
Finding the smallest and the biggest of n numbers:(2n-3)
122124

123-
# Search
124-
## Binary search (Middle …. Middle, O (log(n)).:
125+
## Search
126+
### Binary search (Middle …. Middle, O (log(n)).:
125127

126128
![](media/393309480a114e09e85165f26cfdf15d.png)
127129

@@ -138,15 +140,15 @@ postion of binary)
138140

139141
Middle, Middle, Middle.
140142

141-
Sorting:
142-
========
143+
## Sorting:
144+
143145

144146
**Bubble sort:**
145147

146148
Simplest and most inefficient one O(n\^2)
147149

148-
Merge Sort (divide, merge):
149-
===========================
150+
## Merge Sort (divide, merge):
151+
150152

151153
Using divide and conquer, first, we divide 2 by 2
152154

@@ -162,8 +164,7 @@ O (n Log (n))
162164

163165
Why we are seeing log (n) in our efficiency? Hint: same as binary search problem
164166

165-
Quick Sort (divide, merge):
166-
===========================
167+
## Quick Sort (divide, merge):
167168

168169
Pick one and move it around
169170

@@ -214,11 +215,9 @@ Everythin less than 8 are already below 8 so cemented
214215

215216
**O(n2) if it’s already sorted. Why? Wasting time**
216217

217-
Heaps:
218-
======
219218

220-
Dynamic programming:
221-
====================
219+
## Dynamic programming:
220+
222221

223222
(Programming == tables)
224223

@@ -277,8 +276,7 @@ Longest common subsequent
277276

278277
![](media/1f11fb9b2ed3eb432764db5635531f54.png)
279278

280-
Complexity Theory
281-
=================
279+
## Complexity Theory
282280

283281
Class P: n, n\^2,… (Any problem that can be solved in poly time)
284282

@@ -301,11 +299,8 @@ quickly
301299

302300
Class Co-NP: \_No\_ polytime
303301

304-
Technical Interview
305-
===================
306302

307-
======= Greedy Algorithm (Best option at each step):
308-
====================================================
303+
## Greedy Algorithm (Best option at each step):
309304

310305
![](media/44d46f063fca4872104e6edb1a26e63d.png)
311306

@@ -324,8 +319,8 @@ Example:
324319
Min operations example {see code}: By using while, in dividing numbers in half
325320
// == / and using
326321

327-
Graph algorithm (data structure that shows relation):
328-
=====================================================
322+
## Graph algorithm (data structure that shows relation):
323+
329324

330325
Graph(Tree is a subgroup of graph,Network) Nodes(Vertex) Edges
331326

@@ -352,12 +347,12 @@ Let’s define 3 variables
352347

353348
Final answer we be the best solution out of these both (A[i] B[i] )
354349

355-
Technical Interview (CIOT BRCD) (cute bird)
356-
===========================================
350+
# Technical Interview (CIOT BRCD) (cute bird)
351+
Now lets focus on the technical interviews. We tend to simplify the concepts by using memory palace techniques. I adivse everyone to develop a memory palace for algorithms/techniques that requrie knowledge about more than 6-7 steps.
357352

358353
What are the most important 7 steps?
359354

360-
{Memory Palace} Imagine a cute bird sees a giant worm that is shaped like a Q
355+
Imagine a cute bird sees a giant worm that is shaped like a Q
361356
{Question}. First the bird pour water on the worm (clarify). Then it find the
362357
tail and head (I, O). Then it will taste the worm (Test). It will use its brain
363358
to decide how to eat it (Brainstorm). Then a big white eagle comes and its needs

0 commit comments

Comments
 (0)