Recently I stumbled upon this problem:
whats the highest power of 6 in 400! ?
400 ! being equal to 400 * 399 * 398 * 397 ........... 3 * 2 * 1.
big enough to overflow a data type. None the less, lets try to solve this.
The answer is quite easy. But the logic you define to such a problem is what I look out for.
Sorry for the suspense. I shall post it soon.
I have it on the paper - will scan it soon.
Wednesday, June 13, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment