Published onDecember 7, 2021[LeetCode 23] Merge k Sorted ListsLinkedListYou are given an array of `k` linked-lists `lists`, each linked-list is sorted in ascending order.
Published onDecember 7, 2021[LeetCode 22] Generate ParenthesesTwoPointersGiven n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
Published onNovember 30, 2021[LeetCode 17] Letter Combination of a Phone NumberGraphGiven a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent.
Published onNovember 30, 2021[LeetCode 19] Remove Nth Node from End of ListLinkedListGiven the head of a linked list, remove the nth node from the end of the list and return its head.
Published onNovember 30, 2021[LeetCode 21] Merge Two Sorted ListsLinkedListYou are given the heads of two sorted linked lists list1 and list2.
Published onNovember 30, 2021[LeetCode 20] Valid ParenthesesStackGiven a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
Published onNovember 29, 2021[LeetCode 15] 3SumSortingGiven an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i !
Published onNovember 29, 2021[LeetCode 14] Longest Common PrefixTwoPointersWrite a function to find the longest common prefix string amongst an array of strings.
Published onNovember 25, 2021[Tree] Max Root to Leaf SumTreeWrite a function, maxPathSum, that takes in the root of a binary tree that contains number values.