h*e
2 楼
我当时用C++, Perl和Ruby轮着做里面的题目,到level 4。觉得题目到后面越来
越偏数学。如果不用相应的数学方法和定理的话,brute-force根本解不出来。
还有递归方法很快就不行了:要么stack overflow,要么超时,overnight都算不完。
有意思的地方是你解出题目以后,可以看别人的解答,不少用很冷门的语言解题
的,例如J,K等,有的只用一行程序就解出来的,不过看起来就象line noise一
样。还有用汇编的。
里面也有一些少年英才,我看到一个说14岁,自己一边学数学,一边学编程,
做做题玩玩的。
越偏数学。如果不用相应的数学方法和定理的话,brute-force根本解不出来。
还有递归方法很快就不行了:要么stack overflow,要么超时,overnight都算不完。
有意思的地方是你解出题目以后,可以看别人的解答,不少用很冷门的语言解题
的,例如J,K等,有的只用一行程序就解出来的,不过看起来就象line noise一
样。还有用汇编的。
里面也有一些少年英才,我看到一个说14岁,自己一边学数学,一边学编程,
做做题玩玩的。
p*2
3 楼
太膜拜了。level 4也做了100道题了吧。你觉得值得做做吗?总的来说。
【在 h****e 的大作中提到】
: 我当时用C++, Perl和Ruby轮着做里面的题目,到level 4。觉得题目到后面越来
: 越偏数学。如果不用相应的数学方法和定理的话,brute-force根本解不出来。
: 还有递归方法很快就不行了:要么stack overflow,要么超时,overnight都算不完。
: 有意思的地方是你解出题目以后,可以看别人的解答,不少用很冷门的语言解题
: 的,例如J,K等,有的只用一行程序就解出来的,不过看起来就象line noise一
: 样。还有用汇编的。
: 里面也有一些少年英才,我看到一个说14岁,自己一边学数学,一边学编程,
: 做做题玩玩的。
h*e
6 楼
对找工作当然没有什么直接帮助。当时还不知道Leetcode,只是想找一些
有意思的题目练练编程而已。
有意思的题目练练编程而已。
S*t
7 楼
我PE切了177题,好久没动了,前几个月好几次想试试都下不了手。
不过我觉得Project Euler对算法训练的帮助不大,主要是数学思维。
另外如果学习一门新语言的时候可以通过切Project Euler前50题来锻炼手感和熟悉语
言的一些基本语法和常用的数据结构。
不过我觉得Project Euler对算法训练的帮助不大,主要是数学思维。
另外如果学习一门新语言的时候可以通过切Project Euler前50题来锻炼手感和熟悉语
言的一些基本语法和常用的数据结构。
l*b
9 楼
都是数学题?编程解决的,看起来挺好玩,哈哈
p*2
11 楼
真有意思。scala做上边的题非常简洁。
比如这道
The sum of the squares of the first ten natural numbers is,
12 + 22 + ... + 102 = 385
The square of the sum of the first ten natural numbers is,
(1 + 2 + ... + 10)2 = 552 = 3025
Hence the difference between the sum of the squares of the first ten natural
numbers and the square of the sum is 3025 385 = 2640.
Find the difference between the sum of the squares of the first one hundred
natural numbers and the square of the sum.
scala:
val nums=1 to 100
println(nums.sum*nums.sum-nums.map(i=>i*i).sum)
比如这道
The sum of the squares of the first ten natural numbers is,
12 + 22 + ... + 102 = 385
The square of the sum of the first ten natural numbers is,
(1 + 2 + ... + 10)2 = 552 = 3025
Hence the difference between the sum of the squares of the first ten natural
numbers and the square of the sum is 3025 385 = 2640.
Find the difference between the sum of the squares of the first one hundred
natural numbers and the square of the sum.
scala:
val nums=1 to 100
println(nums.sum*nums.sum-nums.map(i=>i*i).sum)
p*2
12 楼
刷了10题,睡觉。希望周末之前能再刷20题。
l*b
13 楼
http://projecteuler.net/problem=410
终于把这个做出来了,有个每题前100的badge了,哈哈
看人家贴的解答貌似都很牛......差距呀
终于把这个做出来了,有个每题前100的badge了,哈哈
看人家贴的解答貌似都很牛......差距呀
相关阅读
csdn里边下载需要的资源分从哪得?问一个关于引用和指针的问题简历upload以后为什么格式会变得很乱申请工作时要告诉对方SSN吗?h1b 资料问题为啥有的公司给你工作前要 investigative consumer report ?请教一个reverse decimal number的问题美籍華人夫婦被控竊取通用汽車商業機密 (转载)急,在线等:h1b transfer 什么时候走人EAD or EAC?关于telephone screening报一个OPT Case还没拿到手呢大家觉得给human resource officer写email合适吗?大家帮看这句话咋说吧,多谢bloomberg onsite完了要写thank you letter吗?急问!!没有accounting的background 有可能H1B transfer 成功么??!!UBS phone interview, 求祝福请问现在H4还占用H1的时间吗?请问google要freeze是不是真的???哪里有C++,SQL,VBA的面试问题?