System Design links

Important and Useful links from all over the Leetcode

List of all good posts on Leetcode. Comment down whichever I am missing and I will add all of them here – DP for beginners by @wh0ami –[LIST –] Graph for beginners by @wh0ami –[LIST –] Sliding window for beginners by @wh0ami –[LIST –] DP Patterns by @aatalyk – Leetcode patterns from edu_cative_dot_io by @late_riser […]

Leetcode – 78. Subsets

Given a set of distinct integers, nums, return all possible subsets (the power set). Note: The solution set must not contain duplicate subsets. Solution: Cascading Approach: Lets say, we have a set S={1,2,3,4}. Pick an element from set, ex. 4, now you have 2 sets – {[], [4]}. Now pick the second element from list ex. 3, now you […]