Please post all your solutions that you don’t mind being made public here, could you please also attach link to a pastebin containing your code. Thanks.
So I'm sure it's an ugly hack to convert a number to a list of characters, but I'm not a programmer, and it works, pretty fast too.
Tested only in DrScheme.
another solution in common lisp, but this time it's not as "brute force", and looks more or less lispy while being able to cope with large numbers. It's significantly faster and scales better than my previous solutions... because it's not quite as stupid.
Basically it takes each number, converts to string, and makes sure for each character in that string the index of the first one equals the index of the last one.
In common lisp...
In common lisp... http://teenlinux.pastebin.com/f539e3683
and... in python !...
and... in python !... http://teenlinux.pastebin.com/f21d87b41
My Haskell version, not very
My Haskell version, not very clever.
http://hpaste.org/11401
Fred O. Phillips
http://fophillips.org
BBC7 7572 755F 83E0 3209 504A E4F7 874F 1545 9D41
Scheme!
So I'm sure it's an ugly hack to convert a number to a list of characters, but I'm not a programmer, and it works, pretty fast too.
Tested only in DrScheme.
http://teenlinux.pastebin.com/f6da9735b
trying to be clever
another solution in common lisp, but this time it's not as "brute force", and looks more or less lispy while being able to cope with large numbers. It's significantly faster and scales better than my previous solutions... because it's not quite as stupid.
http://teenlinux.pastebin.com/f417a1693
("tree based" approach: don't even try anything starting with "00101", for example. It's obvious that the whole code branch will fail.)
Done in C#
Just the bare minimum;
http://teenlinux.pastebin.com/f58ef8d03
Basically it takes each number, converts to string, and makes sure for each character in that string the index of the first one equals the index of the last one.