All LeetCode Questions List(Part of Answers, still updating) 题目汇总及部分答案(持续更新中) Leetcode problems classified by company 题目按公司分类(Last updated: October ...
因为在开始写这个博客之前,已经刷了 题了,所以现在还是有很多题目没有加进来,为了方便查找哪些没加进来,先列一个表可以比较清楚的查看,也方便给大家查找。如果有哪些题目的链接有错误,请大家留言和谅解,链多了会眼花。 Title Category Difficulty Split a String in Balanced Strings Algorithms Easy Path with Maximu ...
2017-07-05 06:47 0 1771 推荐指数:
All LeetCode Questions List(Part of Answers, still updating) 题目汇总及部分答案(持续更新中) Leetcode problems classified by company 题目按公司分类(Last updated: October ...
Reverse Linked List Reverse a singly linked list. click to show more hints. Hint: A linked list can be reversed either iteratively ...
Palindrome Linked List Given a singly linked list, determine if it is a palindrome. Follow up:Could you do it in O(n) time and O(1) space? 解法 ...
题目: Sort a linked list in O(n log n) time using constant space complexity. 题解: 考虑到要求用O(nlogn)的时间复杂度和constant space complexity来sort list,自然而然想到 ...
题目: Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should ...
题目: Given a list, rotate the list to the right by k places, where k is non-negative. For example: Given 1->2->3->4->5->NULL and k ...
题目: Sort a linked list using insertion sort. 题解: Insertion Sort就是把一个一个元素往已排好序的list中插入的过程。 初始时,sorted list是空,把一个元素插入sorted list中。然后,在每一次插入过程中,都是 ...
Number of Islands Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. ...