Two Sum Js
- create a hash map
- iterate through the num array
- get a complement (target - element)
- if the complement is in hashmap
- return the complement's index, and current element's index
- else set the current element and its index in map
anagram
s.split("").sort().join("") t.split("").sort().join("")
compare these ===
merge sorted list
- create a dummy node and set it to current
- iterate through the two lists until they are empty
- if list1.value is less list2 value, set the current.next to list1 and list1 to list1.next
- else do the same for list2
- increment the pointer current -> current.next
- if current.next = list1 || list2 attach the list to teh current.next
current.next = list1 !== null ? list1 : list2;- return dummy.next;