-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|376|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Link Home -> Just for Fun


 
Phoenix
Created : 05 April 2009
 

Mind-bending Puzzles



https://projecteuler.net/index.php?section=problems
Stumbled upon this site, with programming/math problems. The first few are fairly easy, but then the difficulty level grows.

 

Comments


Sunday, 05 April 2009, 15:02
Phoenix
An interesting observation I've made from watching other people's solutions is that the Ruby solution is almost always the smallest one.

|edit| Ok, I retract that statement. The smallest programs seem to be written in J. |edit|
Sunday, 05 April 2009, 15:29
CodersRule
I was just trying to solve the first one in ruby and i cant understand it
Sunday, 05 April 2009, 17:06
Phoenix
The first one is very easy. Use n%3 == 0 to determine whether a number is a multiple of three or not.

|edit| Just because the smallest solutions were made in Ruby that doesn't mean that they were the easiest to come up with. |edit|

|edit| I'm particularly proud of my solution for level 3 in C#:
> Reveal 🔎 |edit|

Sunday, 05 April 2009, 17:41
CodersRule
Later I looked it up and they had the EXACT program I was having problems with - turns out I had a typo in my answer