Leetcode解题报告:Next Permutation

2017-04-06
阅读 3 分钟
1.8k
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.

Leetcode解题报告:Remove Element

2017-04-04
阅读 1 分钟
2.2k
Given an array and a value, remove all instances of that value in place and return the new length.

Leetcode解题报告:Remove Duplicates from Sorted Array

2017-04-03
阅读 3 分钟
2k
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.

Leetcode解题报告:Remove Nth Node From End of List

2017-04-03
阅读 3 分钟
1.5k
Given a linked list, remove the nth node from the end of list and return its head.

Leetcode解题报告:Longest Common Prefix

2017-04-02
阅读 5 分钟
2.8k
Write a function to find the longest common prefix string amongst an array of strings.