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. ...