First one I checked was `two_sum.rs` and it uses a `HashMap`: <a href="https://github.com/TheAlgorithms/Rust/blob/master/src/general/two_sum.rs" rel="nofollow">https://github.com/TheAlgorithms/Rust/blob/master/src/genera...</a><p>Surely the best way is to sort the numbers and then walk from both ends?<p>Nice work anyway!
I think the Karatsuba implementation is kind of missing the point of the whole exercise by just leaning on i128’s methods. It should really be defining a big num type or doing all the work on strings etc.<p>It’s also going to explode if I put in a number with several thousand digits as it is unwrap()ing everywhere