码迷,mamicode.com
首页 >  
搜索关键字:some negative feelin    ( 9286个结果
[leetcode]Gray Code
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrepresenting the total number...
分类:其他好文   时间:2014-06-25 22:07:58    阅读次数:330
Erlang高阶函数
对于函数式语言来说,函数也想普通的数据类型一样无处不在。函数即可以当成参数进行传递,也可以当成函数的返回值。当我第一次学习函数式编程的时候,我被这样的写法弄的头昏脑涨。下面我举例说明下(例子摘录自Learn You Some Erlang): 假如你想对一个列表中的所有值都进行加1或减1的操作...
分类:其他好文   时间:2014-06-25 21:50:31    阅读次数:244
Some thoughts on a progress
I can feel that I am making great progress now.. if inspected closely, it is obvious that what I'm getting through is, a newbie phase:coding details m...
分类:其他好文   时间:2014-06-25 18:23:24    阅读次数:206
Evaluate Reverse Polish Notation (Python)
【问题】 Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, /. Each operand may be an integer or another expression. Some examples: ...
分类:编程语言   时间:2014-06-24 23:22:53    阅读次数:331
swift官方文档中的switch中case let x where x.hasSuffix("pepper")是什么意思?
在官方文档中,看到这句。但不明白什么意思。let vegetable = "red pepper"switch vegetable { case "celery": let vegetableComment = "Add some raisins and make...
分类:其他好文   时间:2014-06-24 22:52:30    阅读次数:400
Add Two Numbers
题目 You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return...
分类:其他好文   时间:2014-06-24 21:46:24    阅读次数:249
Reverse Integer
题目 Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 Have you thought about this? Here are some good questions to ask before coding. Bonus poin...
分类:其他好文   时间:2014-06-24 20:16:39    阅读次数:180
Container With Most Water
题目 Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (...
分类:其他好文   时间:2014-06-24 16:00:49    阅读次数:220
Leetcode Rotate List
Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL.先算出链表...
分类:其他好文   时间:2014-06-24 14:03:10    阅读次数:192
Leetcode: Rotate List
Given a list, rotate the list to the right by k places, where k is non-negative.For example:Given 1->2->3->4->5->NULL and k = 2,return 4->5->1->2->3->...
分类:其他好文   时间:2014-06-24 12:00:32    阅读次数:142
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!