I like this. One minor tweak here would be to start Range at 1 instead of 0 since 0 will never contribute to a sum, but that just saves you one iteration.
Range
1
0
hey:-( The tests didn't fail as far as I know; almost 40 people passed them without any problem and I just tried them with ulong: no problem!-)
hey:) the c# implementation sucks... The tests are written for int, and they fail if ulong is used. The tests after submint requre ulong....
I should have thought of that...
Change the return type to Maybe Integer in Haskell.
Maybe Integer
There is no need to use factorial!
FFS... The tests kill me:) Factorial of 35? C# int64 can't hadle this. And i could not start BigInteger your Env? I quit this one((
Loading collection data...
I like this. One minor tweak here would be to start
Range
at1
instead of0
since0
will never contribute to a sum, but that just saves you one iteration.hey:-( The tests didn't fail as far as I know; almost 40 people passed them without any problem and I just tried them with ulong: no problem!-)
hey:) the c# implementation sucks... The tests are written for int, and they fail if ulong is used. The tests after submint requre ulong....
I should have thought of that...
Change the return type to
Maybe Integer
in Haskell.There is no need to use factorial!
FFS... The tests kill me:) Factorial of 35? C# int64 can't hadle this. And i could not start BigInteger your Env? I quit this one((