上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页

LeetCode-144-Binary Tree Preorder Traversal

摘要: 算法描述: Given a binary tree, return the preorder traversal of its nodes' values. Example: Follow up: Recursive solution is trivial, could you do it iter 阅读全文
posted @ 2019-02-06 17:43 无名路人甲 阅读(116) 评论(0) 推荐(0) 编辑

LeetCode-143-Reorder List

摘要: 算法描述: Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… You may not modify the values in the list's nodes, only nod 阅读全文
posted @ 2019-02-06 17:26 无名路人甲 阅读(99) 评论(0) 推荐(0) 编辑

LeetCode-142-Linked List Cycle II

摘要: 算法描述: Given a linked list, return the node where the cycle begins. If there is no cycle, return null. To represent a cycle in the given linked list, w 阅读全文
posted @ 2019-02-06 16:42 无名路人甲 阅读(90) 评论(0) 推荐(0) 编辑

LeetCode-139-Word Break

摘要: 算法描述: Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be segmented into a space-separate 阅读全文
posted @ 2019-02-06 16:28 无名路人甲 阅读(118) 评论(0) 推荐(0) 编辑

LeetCode-138-Copy List with Random Pointer

摘要: 算法描述: A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a dee 阅读全文
posted @ 2019-02-06 13:09 无名路人甲 阅读(133) 评论(0) 推荐(0) 编辑

LeetCode-137-Single Number II

摘要: 算法描述: Given a non-empty array of integers, every element appears three times except for one, which appears exactly once. Find that single one. Note: Y 阅读全文
posted @ 2019-02-06 12:10 无名路人甲 阅读(128) 评论(0) 推荐(0) 编辑

LeetCode-134-Gas Station

摘要: 算法描述: here are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it 阅读全文
posted @ 2019-02-06 11:43 无名路人甲 阅读(122) 评论(0) 推荐(0) 编辑

LeetCode-133-Clone Graph

摘要: 算法描述: Given the head of a graph, return a deep copy (clone) of the graph. Each node in the graph contains a label (int) and a list (List[UndirectedGra 阅读全文
posted @ 2019-02-06 09:34 无名路人甲 阅读(115) 评论(0) 推荐(0) 编辑

LeetCode-131-Palindrome Partitioning

摘要: 算法描述: Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. Exam 阅读全文
posted @ 2019-02-05 21:43 无名路人甲 阅读(136) 评论(0) 推荐(0) 编辑

LeetCode-130-Surrounded Regions

摘要: 算法描述: Given a 2D board containing 'X' and 'O' (the letter O), capture all regions surrounded by 'X'. A region is captured by flipping all 'O's into 'X 阅读全文
posted @ 2019-02-05 21:21 无名路人甲 阅读(128) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页