Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 18 Online
OpenStudy (anonymous):

Project Euler, Problem 6: Here is my working solution for it: http://codepad.org/sZRAsQUr I would like some feedback, mainly, how can I use lambda/reduce in the first part of the problem? Any other kind of feedback will be appreciated also :-). Thanks in advance.

OpenStudy (anonymous):

http://codepad.org/XLe4DQX6 Here's a version with reduce and one with sum.

OpenStudy (anonymous):

Thanks dmancine. I forgot completely about map() built-in. =) Any other improvement on the code?

OpenStudy (anonymous):

http://codepad.org/Xh6qIuY1

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!