![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
文章平均质量分 57
xiepengcheng716
这个作者很懒,什么都没留下…
展开
-
leetcode-375 猜数游戏
We are playing the Guess Game. The game is as follows:I pick a number from 1 to n. You have to guess which number I picked.Every time you guess wrong, I'll tell you whether the number I picked原创 2017-04-28 10:18:30 · 649 阅读 · 0 评论 -
300.leetcode-Longest Incresing Subsequence最长递增子序列
Given an unsorted array of integers, find the length of longest increasing subsequence.For example,Given [10, 9, 2, 5, 3, 7, 101, 18],The longest increasing subsequence is [2, 3, 7, 101], ther原创 2017-04-29 11:58:42 · 394 阅读 · 0 评论 -
98.leetcode-判断是否有效的二叉排序树
Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node contains only nodes with keys less than the node’s key.原创 2017-04-26 10:12:17 · 348 阅读 · 0 评论 -
leetcode-322硬币找零
You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you need to make up that amount. If that amount of money c原创 2017-04-26 16:19:45 · 592 阅读 · 0 评论 -
leetcode-3sum 三数之和
[LeetCode] 3Sum 三数之和 Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.Note:转载 2017-04-26 22:14:33 · 474 阅读 · 0 评论 -
leetcode-3sum closest
[LeetCode] 3Sum Closest 最近三数之和 Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. Yo转载 2017-04-26 22:15:43 · 193 阅读 · 0 评论 -
Add Two Numbers 两个数字相加
You have two numbers represented by a linked list, where each node contains a single digit. The digits are stored in reverse order, such that the 1's digit is at the head of the list. Write a functi原创 2017-07-13 10:08:25 · 303 阅读 · 0 评论