- 博客(13)
- 收藏
- 关注
原创 【LeetCode】234.Palindrome Linked List(Easy)解题报告
【LeetCode】234.Palindrome Linked List(Easy)解题报告题目地址:https://leetcode.com/problems/palindrome-linked-list/description/ 题目描述: Given a singly linked list, determine if it is a palindrome. 把链表均分
2017-12-21 12:23:28 173
原创 【LeetCode】206.Reverse Linked List(Easy)解题报告
【LeetCode】206.Reverse Linked List(Easy)解题报告题目地址:https://leetcode.com/problems/reverse-linked-list/description/ 题目描述: Reverse a singly linked list.Solutions: 方法一在遍历列表时,将当前节点的下一个指针改为指向其前一个元素。 由
2017-12-21 12:22:50 135
原创 【LeetCode】9.Palindrome Number(Easy)解题报告
【LeetCode】9.Palindrome Number(Easy)解题报告题目地址:https://leetcode.com/problems/palindrome-number/description/ 题目描述: Determine whether an integer is a palindrome. Do this without extra space. 题意:
2017-12-20 21:07:33 152
原创 【LeetCode】14.Longest Common Prefix(Easy)解题报告
【LeetCode】14.Longest Common Prefix(Easy)解题报告tags:String题目地址:https://leetcode.com/problems/longest-common-prefix/description/ 题目描述: Write a function to find the longest common prefix string amongst
2017-12-19 10:04:33 121
原创 【LeetCode】377.Combination Sum IV(Medium)解题报告
【LeetCode】377.Combination Sum IV(Medium)解题报告题目地址:https://leetcode.com/problems/combination-sum-iv/description/ 题目描述: Given an integer array with all positive numbers and no duplicates, find the nu
2017-12-12 09:31:24 574
原创 【LeetCode】216.Combination Sum III(Medium)解题报告
【LeetCode】216.Combination Sum III(Medium)解题报告题目地址:https://leetcode.com/problems/combination-sum-iii/description/ 题目描述: Find all possible combinations of k numbers that add up to a number n, given
2017-12-12 09:21:33 197
原创 【LeetCode】40.Combination Sum II(Medium)解题报告
【LeetCode】40.Combination Sum II(Medium)解题报告题目地址:https://leetcode.com/problems/combination-sum-ii/description/ 题目描述: Given a collection of candidate numbers (C) and a target number (T), find all un
2017-12-12 09:13:22 278
原创 【LeetCode】39.Combination Sum(Medium)解题报告
【LeetCode】39.Combination Sum(Medium)解题报告题目地址:https://leetcode.com/problems/combination-sum/description/ 题目描述: Given a set of candidate numbers (C) (without duplicates) and a target number (T), fin
2017-12-12 09:08:30 184
原创 【LeetCode】145.Binary Tree Postorder Traversal(Hard)解题报告
【LeetCode】145.Binary Tree Postorder Traversal(Hard)解题报告题目地址:https://leetcode.com/problems/binary-tree-postorder-traversal/description/ 题目描述: Given a binary tree, return the postorder traversa...
2017-12-12 08:59:12 198
原创 【LeetCode】648.Replace Words(Medium)解题报告
【LeetCode】648.Replace Words(Medium)解题报告题目地址:https://leetcode.com/problems/replace-words/description/ 题目描述: In English, we have a concept called root, which can be followed by some other words to f
2017-12-12 08:49:59 250
原创 【LeetCode】403. Frog Jump(Hard)解题报告
【LeetCode】403. Frog Jump(Hard)解题报告题目地址:https://leetcode.com/problems/frog-jump/description/ 题目描述: A frog is crossing a river. The river is divided into x units and at each unit there may or may no
2017-12-12 08:45:06 316
原创 【LeetCode】572.Subtree of Another Tree(Easy)解题报告
【LeetCode】572.Subtree of Another Tree(Easy)解题报告题目地址:https://leetcode.com/problems/subtree-of-another-tree/description/ 题目描述: Given two non-empty binary trees s and t, check whether tree t has exac
2017-12-10 23:39:46 202
原创 【LeetCode】100.Same Tree(Easy)解题报告
【LeetCode】100.Same Tree(Easy)解题报告题目地址:https://leetcode.com/problems/same-tree/description/ 题目描述: Given two binary trees, write a function to check if they are the same or not. Two binary...
2017-12-10 23:36:29 143
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人