Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 773 Bytes

Some concepts(for interview I guess).md

File metadata and controls

21 lines (13 loc) · 773 Bytes

Concepts for interview

Sorting

Stable and unstable sorting algorithms Stable sorting algorithms preserve the relative order of equal elements, while unstable sorting algorithms don't.
Most efficient sorting algo'sThere are two which run in N*logN. Merge and Heap sort. N*logN is the most effiecient so far, given random variety of numbers

Segment Tree

Why is segment tree used? To update the value/values in array at an index and query the sum/max/... in the range of indices in O(log N)

Resources:

Big O cheatsheet: https://www.bigocheatsheet.com/

Repeating snippet

Toggle me!Peek a boo!