14. Longest Common Prefix 题目 Write a function to find the longest common prefix string amongst an array of str…
分类:LeetCode题目解答
13. Roman to Integer
欢迎fork and star:Nowcoder-Repository-github 13. Roman to Integer 题目 Given a roman numeral, convert it to an int…
15. 3Sum
15. 3Sum 题目 Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all …
16. 3Sum Closest
16. 3Sum Closest 题目 Given an array S of n integers, find three integers in S such that the sum is closest to a…
18. 4Sum
欢迎fork and star:Nowcoder-Repository-github 18. 4Sum 题目 Given an array S of n integers, are there elements a, b…
17. Letter Combinations of a Phone Number
欢迎fork and star:Nowcoder-Repository-github 17. Letter Combinations of a Phone Number 题目 Given a digit string, …
19. Remove Nth Node From End of List
19. Remove Nth Node From End of List 题目 Given a linked list, remove the nth node from the end of list and retu…
21. Merge Two Sorted Lists
21. Merge Two Sorted Lists 题目 Merge two sorted linked lists and return it as a new list. The new list should b…
20. Valid Parentheses
20. Valid Parentheses 题目 Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determ…
22. Generate Parentheses
22. Generate Parentheses 题目 Given n pairs of parentheses, write a function to generate all combinations of wel…
24. Swap Nodes in Pairs
24. Swap Nodes in Pairs 题目 Given a linked list, swap every two adjacent nodes and return its head. For example…
23. Merge k Sorted Lists
欢迎fork and star:Nowcoder-Repository-github 23. Merge k Sorted Lists 题目 Merge k sorted linked lists and return …