Description Submission
19. Remove Nth Node From End of List
Description Submission 1 Submission 2 Submission 210730
18. 4Sum
Description Submission The solution is bounded to be O(N^3), so we only need to iterate through the 2 outer loops and then solving the 2Sum […]
17. Letter Combinations of a Phone Number
Description Submission References It’s tricky to convert a char to a single character string https://www.techiedelight.com/convert-char-to-string-cpp/ One way is to use the string constructor, taking two […]
3Sum Closest – LeetCode #16
Description Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the three integers. You […]
3Sum – #15 LeetCode
Description Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. Note: The solution […]
Longest Common Prefix – #14 LeetCode
Description Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty […]