26. Remove Duplicates from Sorted Array 题目 Given a sorted array, remove the duplicates in-place such that each…
分类:LeetCode题目解答
27. Remove Element
27. Remove Element 题目 Given an array and a value, remove all instances of that value in-place and return the n…
28. Implement strStr()
28. Implement strStr() 题目 Implement strStr(). Return the index of the first occurrence of needle in haystack, …
29. Divide Two Integers
欢迎fork and star:Nowcoder-Repository-github 29. Divide Two Integers 题目 Divide two integers without using multip…
25. Reverse Nodes in k-Group
25. Reverse Nodes in k-Group 题目 Given a linked list, reverse the nodes of a linked list k at a time and return…
30. Substring with Concatenation of All Words
欢迎fork and star:Nowcoder-Repository-github 30. Substring with Concatenation of All Words 题目 You are given a st…
46. Permutations 排列数
46. Permutations 题目 Given a collection of distinct numbers, return all possible permutations. For example, [1,…
47. Permutations II
欢迎fork and star:Nowcoder-Repository-github 47. Permutations II 题目 Given a collection of numbers that might con…
31. Next Permutation
欢迎fork and star:Nowcoder-Repository-github 31. Next Permutation 题目 Implement next permutation, which rearrange…
32. Longest Valid Parentheses
32. Longest Valid Parentheses 题目 Given a string containing just the characters '(' and ')', find the length of…
33. Search in Rotated Sorted Array
欢迎fork and star:Nowcoder-Repository-github 33. Search in Rotated Sorted Array 题目 Suppose an array sorted in as…
34. Search for a Range
欢迎fork and star:Nowcoder-Repository-github 34. Search for a Range 题目 Given an array of integers sorted in asce…