Talk:Count the coins: Difference between revisions

no edit summary
No edit summary
Line 8:
: Well, now you are in a debate about it.
: One definitely can write D code where bignum is only used when necessary, though obviously it won't be as convenient as in languages which can manage that by itself as in Python. But you don't see people making claims like "coding in language A is about 2.7 times easier than in language B", only the speed comparisons, which is misleading by not telling the whole story. Also, unless you are confident both examples are well written within the bounds of reasonable effort, such comment doesn't really tell much. --[[User:Ledrug|Ledrug]] 14:24, 30 October 2011 (UTC)
 
== Python vs C ==
 
The second Python version gives:
99341140660285639188927260001
 
For:
make_change(1000000, [1,2,5,10,20,50,100,200])
 
While the C version gives:
8.033207543e+24
 
That means:
8033207542650321391101281
Anonymous user