Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/espiramarvin/dsa-practices

DSA Practices
https://github.com/espiramarvin/dsa-practices

algorithms data-structures

Last synced: about 1 month ago
JSON representation

DSA Practices

Awesome Lists containing this project

README

        

#### DS & A
### BIG-O TIME COMPLEXITY

#### 1. Linear time complexity - O(n) worst case time complexity/time complexity
#### 2. Constant time complexity - O(1)
#### 3. Quadratic time complexity - O(n^2)
#### 4. Cubic time complexity - O(n^3)
#### 5. Logarithmic time complexity - O(logn) - input size reduced by half - O(logn)


##### BIG-O GUIDE

###### 1. loop - O(n)
###### 2. nested loop -O(n^2)
###### 3. Logarithmic O(log n) input size reduced by half


### BIG-O SPACE COMPLEXITY

#### 1. Constant - O(1) -no extra space/memory needed when input size increases
#### 2. Linear - O(n) - extra space neede when input size increases
#### 3. Logarithmic -O(log n) - extra space needed grows but not at the same rate as the input size
#### 4. Quadratic - you should try to avoid