码迷,mamicode.com
首页 >  
搜索关键字:problems    ( 6275个结果
[LeedCode OJ]#142 Linked List Cycle II
【 声明:版权所有,转载请标明出处,请勿用于商业用途。  联系信箱:libin493073668@sina.com】 题目链接:https://leetcode.com/problems/linked-list-cycle-ii/ 题意: 对于一个链表,判断其是否有环,有环则返回环的起始位置。 思路: 通过141题,我们知道可以通过快慢指针来判断是...
分类:其他好文   时间:2015-09-07 22:56:58    阅读次数:380
[RxJS] Stream Processing With RxJS vs Array Higher-Order Functions
Higher order Array functions such as filter, map and reduce are great for functional programming, but they can incur performance problems.var ary = [1...
分类:Web程序   时间:2015-09-07 19:31:19    阅读次数:256
LeetCode(5) : Longest Palindromic Substring
【题目】LeetCode(5): Longest Palindromic SubstringURL: https://leetcode.com/problems/longest-palindromic-substring/【描述】Given a stringS, find the longest p...
分类:其他好文   时间:2015-09-07 07:02:02    阅读次数:339
LeetCode:Count Primes - 统计质数数量
1、题目名称 Count Primes(统计质数数量) 2、题目地址 https://leetcode.com/problems/count-primes/ 3、题目内容 英文:Count the number of prime numbers less than a non-negative number, n. 中文:统计正...
分类:其他好文   时间:2015-09-07 00:43:16    阅读次数:202
短路求值新用处
https://leetcode.com/problems/h-index/class Solution {public: int hIndex(vector& citations) { priority_queue pq; for(int i=0;i= pages...
分类:其他好文   时间:2015-09-06 16:00:19    阅读次数:152
Don’t Be a Problem Solver
?Don’t Be a Problem SolverEben HewittWiTH SoME ExCEpTionS, ARCHiTECTS uSEd To BE dEvElopERS. Devel- opers get rewarded for solving programming problems, which are more local in scope than architectural...
分类:其他好文   时间:2015-09-06 09:53:57    阅读次数:196
leetcode Sort List
sort list:https://leetcode.com/problems/sort-list/ 数组的排序比较相对于链表的,还是比较容易的。链表的排序,有一个最麻烦的地方就是,无法通过下标来访问节点,所以操作起来就没有数组那么方便。 链表排序,拿到这题,第一个想到的是快排。快排的思路和...
分类:其他好文   时间:2015-09-05 14:56:39    阅读次数:226
LeetCode(2): Add Two Numbers
【题目】LeetCode(2): Add Two NumbersURL: https://leetcode.com/problems/add-two-numbers/【描述】You are given two linked lists representing two non-negative nu...
分类:其他好文   时间:2015-09-05 11:01:17    阅读次数:240
Stable Problems Get High-Quality Solutions
?Stable Problems Get High-Quality SolutionsSam GardinerREAl-WoRld pRogRAMMing is not about solving the problem that someone gives to you. In the computer science classroom, you must solve the binary- s...
分类:其他好文   时间:2015-09-04 08:45:39    阅读次数:145
Binary Tree Right Side View
https://leetcode.com/problems/binary-tree-right-side-view//** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *...
分类:其他好文   时间:2015-09-04 07:13:21    阅读次数:182
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!