随笔分类 -  leetcode

摘要:Convert Sorted List to Binary Search Tree 题解 题目来源:https://leetcode.com/problems/convert sorted list to binary search tree/description/ Description Giv 阅读全文
posted @ 2018-02-02 16:22 言何午 阅读(108) 评论(0) 推荐(0)
摘要:Sqrt(x) 题解 题目来源:https://leetcode.com/problems/sqrtx/description/ Description Implement . Compute and return the square root of x. x is guaranteed to b 阅读全文
posted @ 2018-02-02 13:19 言何午 阅读(118) 评论(0) 推荐(0)
摘要:Pow(x, n) 题解 题目来源:https://leetcode.com/problems/powx n/description/ Description Implement "pow(x, n)" . Example Example 1: Example 2: Solution 阅读全文
posted @ 2018-02-02 10:40 言何午 阅读(133) 评论(0) 推荐(0)
摘要:Balanced Binary Tree 题解 题目来源:https://leetcode.com/problems/balanced binary tree/description/ Description Given a binary tree, determine if it is heigh 阅读全文
posted @ 2018-02-01 19:34 言何午 阅读(104) 评论(0) 推荐(0)
摘要:Convert Sorted Array to Binary Search Tree 题解 题目来源:https://leetcode.com/problems/convert sorted array to binary search tree/description/ Description G 阅读全文
posted @ 2018-02-01 16:03 言何午 阅读(114) 评论(0) 推荐(0)
摘要:Construct Binary Tree from Preorder and Inorder Traversal 题解 题目来源:https://leetcode.com/problems/construct binary tree from preorder and inorder traver 阅读全文
posted @ 2018-02-01 15:31 言何午 阅读(97) 评论(0) 推荐(0)
摘要:Remove Element 题解 题目来源:https://leetcode.com/problems/remove element/description/ Description Given an array and a value, remove all instances of that 阅读全文
posted @ 2018-02-01 10:57 言何午 阅读(117) 评论(0) 推荐(0)
摘要:Letter Combinations of a Phone Number 题解 题目来源:https://leetcode.com/problems/letter combinations of a phone number/description/ Description Given a dig 阅读全文
posted @ 2018-02-01 10:31 言何午 阅读(148) 评论(0) 推荐(0)
摘要:Generate Parentheses 题解 题目来源:https://leetcode.com/problems/generate parentheses/description/ Description Given n pairs of parentheses, write a functio 阅读全文
posted @ 2018-01-31 15:36 言何午 阅读(135) 评论(0) 推荐(0)
摘要:Valid Parentheses 题解 题目来源:https://leetcode.com/problems/ Description Given a string containing just the characters , , , , and , determine if the inpu 阅读全文
posted @ 2018-01-31 10:17 言何午 阅读(99) 评论(0) 推荐(0)
摘要:Binary Tree Zigzag Level Order Traversal 题解 题目来源:https://leetcode.com/problems/binary tree zigzag level order traversal/description/ Description Given 阅读全文
posted @ 2018-01-30 16:19 言何午 阅读(97) 评论(0) 推荐(0)
摘要:Binary Tree Level Order Traversal II 题解 题目来源:https://leetcode.com/problems/binary tree level order traversal ii/description/ Description Given a binar 阅读全文
posted @ 2018-01-30 15:38 言何午 阅读(111) 评论(0) 推荐(0)
摘要:Partition List 题解 题目来源:https://leetcode.com/problems/partition list/description/ Description Given a linked list and a value x, partition it such that 阅读全文
posted @ 2018-01-30 13:31 言何午 阅读(385) 评论(0) 推荐(0)
摘要:Container With Most Water 题解 题目来源:https://leetcode.com/problems/container with most water/description/ Description Given n non negative integers a1, a 阅读全文
posted @ 2018-01-30 10:52 言何午 阅读(130) 评论(0) 推荐(0)
摘要:Longest Common Prefix 题解 题目来源:https://leetcode.com/problems/longest common prefix/description/ Description Write a function to find the longest common 阅读全文
posted @ 2018-01-30 10:03 言何午 阅读(164) 评论(0) 推荐(0)
摘要:Reverse Linked List II 题解 题目来源:https://leetcode.com/problems/reverse linked list ii/description/ Description Reverse a linked list from position m to 阅读全文
posted @ 2018-01-29 15:05 言何午 阅读(115) 评论(0) 推荐(0)
摘要:Reverse Linked List 题解 题目来源:https://leetcode.com/problems/reverse linked list/description/ Description Reverse a singly linked list. Solution 解题描述 这道题 阅读全文
posted @ 2018-01-29 13:09 言何午 阅读(149) 评论(0) 推荐(0)
摘要:Remove Duplicates from Sorted List II 题解 题目来源:https://leetcode.com/problems/remove duplicates from sorted list ii/description/ Description Given a sor 阅读全文
posted @ 2018-01-29 11:35 言何午 阅读(108) 评论(0) 推荐(0)
摘要:Remove Duplicates from Sorted List 题解 题目来源:https://leetcode.com/problems/remove duplicates from sorted list/description/ Description Given a sorted li 阅读全文
posted @ 2018-01-29 10:50 言何午 阅读(144) 评论(0) 推荐(0)
摘要:Remove Duplicates from Sorted Array II 题解 题目来源:https://leetcode.com/problems/remove duplicates from sorted array ii/description/ Description Follow up 阅读全文
posted @ 2018-01-29 10:08 言何午 阅读(99) 评论(0) 推荐(0)