Solutions to the everyday LeetCode Challenge in June 2020.
This README contains the list of problems solved.
Unless otherwise specified, n -> Number of Nodes of tree / Length of String / Length of Array inputs
Concepts Used | Time Complexity | (Auxilliary) Space Complexity | Solution |
---|---|---|---|
Binary Tree | O(n) | O(1) | S01 |
Linked Lists | O(1) | O(1) | S02 |
Arrays, Sorting | O(nlogn) | O(1) | S03 |
Arrays, Reversal | O(n) | O(1) | S04 |
Randomization | O(n) | O(n) | S05 |
Arrays, Construction | O(nlogn) | O(n) | S06 |
Recursion, Dynamic Programming | O(n * a) | O(a) {a->Amount} | S07 |