![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Leetcode
文章平均质量分 84
SLIM0201
这个作者很懒,什么都没留下…
展开
-
[算法]找出旋转数组的最小数字
把一个数组最开始的若干个元素搬到数组的末尾,我们称之为数组的旋转。 输入一个非递减排序的数组的一个旋转,输出旋转数组的最小元素。原创 2017-06-23 10:44:58 · 233 阅读 · 0 评论 -
[算法题]用两个栈实现队列
编程题:用两个栈实现队列用两个栈来实现一个队列,完成队列的Push和Pop操作。 队列中的元素为int类型。原创 2017-06-22 15:56:46 · 255 阅读 · 0 评论 -
倒序打印链表节点值
出处:《剑指offer》输入一个链表,从尾到头打印链表每个节点的值。原创 2017-06-20 17:24:56 · 249 阅读 · 0 评论 -
[Leetcode] 3. Longest Substring Without Repeating Characters
https://leetcode.com/problems/longest-substring-without-repeating-characters/#/descriptionGiven a string, find the length of the longest substring without repeating characters.Examples:Given原创 2017-05-19 09:34:59 · 344 阅读 · 0 评论 -
[Leetcode] 458. Poor Pigs
https://leetcode.com/problems/poor-pigs/#/description题是好题,答案也是巧妙,思维停留在一维伤不起。There are 1000 buckets, one and only one of them contains poison, the rest are filled with water. They all loo原创 2017-05-19 10:32:49 · 4311 阅读 · 0 评论 -
[Leetcode]1. Two Sum
https://leetcode.com/problems/two-sum/#/descriptionGiven an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would原创 2017-05-15 14:11:26 · 173 阅读 · 0 评论 -
[Leetcode]2. Add Two Numbers
https://leetcode.com/problems/add-two-numbers/You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes cont原创 2017-05-15 15:45:32 · 176 阅读 · 0 评论 -
[算法题]输出斐波那契数列的第N项
现在要求输入一个整数n,请输出斐波那契数列的第n项原创 2017-06-23 11:36:27 · 926 阅读 · 0 评论