Adding my understanding of the leet code problems solved in Javascript.
Will have problems from various sources that I have solved and can be used for later reference.
Solution 1 can be Brute Force attempt. Solution 2/3 will be optimal.
Time and Space Complexity added to each.