网址:http://www.pythonchallenge.com/解答好文:http://story.iteye.com/blog/730466 0:2^38 1 reduce(lambda x,y:x*y,[2]*38) #输入时不要输入L,只是表示类型为Long 1:位移两位 1 import
分类:
编程语言 时间:
2016-03-05 00:14:38
阅读次数:
217
非常challenge的一道题,考虑的情况特别多,当考虑到了之后,还要考虑怎么处理。题目要求是,给你两个字符串,判断正则字符串能不能表示待检字符串,一个是"aabb",另外一个是正则表达式"a*.*"。该正则表达式只有两种特殊符号,一种是'.',代表的是任意字符,另一种是'*',它单独出现没有任何意
分类:
其他好文 时间:
2016-02-29 07:05:18
阅读次数:
225
Invert a binary tree. Example 1 1 / \ / \ 2 3 => 3 2 / \ 4 4 Challenge Do it in recursion is acceptable, can you do it without recursion? 1. 递归 /** *
分类:
其他好文 时间:
2016-02-26 06:56:51
阅读次数:
237
Given a binary tree, return the preorder traversal of its nodes' values. Example Given: 1 / \ 2 3 / \ 4 5 return [1,2,4,5,3]. Challenge Can you do it
分类:
其他好文 时间:
2016-02-21 18:25:22
阅读次数:
153
Given a binary tree, return the inorder traversal of its nodes' values. Example Given binary tree {1,#,2,3}, 1 \ 2 / 3 return [1,3,2]. Challenge Can y
分类:
其他好文 时间:
2016-02-21 11:29:05
阅读次数:
116
Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below ...
分类:
编程语言 时间:
2016-02-17 00:54:23
阅读次数:
226
用堆维护双向链表来贪心。。。 数据范围显然不容许O(nm)的傻逼dp>_<。。而且dp光是状态就n*m个了。。显然没法优化 大概就会想到贪心乱搞了吧。。。一开始想贪心地通过几段小的负数把正数连接成一段,但到底是要连接在一起还是直接扔掉不好判断 然后就跑去翻题解了。。。题解讲的挺好的,连我都看懂了>_
分类:
其他好文 时间:
2016-02-10 00:31:29
阅读次数:
209
在imagenet上的图像分类challenge上Alex提出的alexnet网络结构模型赢得了2012届的冠军。要研究CNN类型DL网络模型在图像分类上的应用,就逃不开研究alexnet,这是CNN在图像分类上的经典模型(DL火起来之后)。在DL开源实现caffe的model例子中,它也给出了al...
分类:
Web程序 时间:
2016-01-11 16:31:30
阅读次数:
712
Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please do not see below and ...
分类:
其他好文 时间:
2016-01-03 22:14:06
阅读次数:
206