As many of you know I am a huge fan of what I like to call Wikipedia programming. Basically it involves reading about an algorithm on Wikipedia and then coding it based off of what you read. One way to multiple two numbers very quickly is by implementing the Karatsuba algorithm. For today's problem implement the algorithm in the language of your choice. For bonus points, if you're confident your solution is correct go ahead and update the Wikipedia article.
Comments:
sheehan - 10 years, 2 months ago
in ruby
reply permalink
asheehan - 10 years, 2 months ago
Wolfram Alpha seems to agree with the output for several test cases.
reply permalink