A Rust learning exercise
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Serra Allgood 2f82f0a157 Create README 3 months ago
src Make a failing attempt 3 months ago
.gitignore Make a failing attempt 3 months ago
Cargo.lock Make a failing attempt 3 months ago
Cargo.toml Make a failing attempt 3 months ago
README.md Create README 3 months ago

README.md

sum-of-pairs

Description

This was an over engineered attempt to solve a kata whose tests were written to time out if you go the for loop route that I used here; I was wondering if Rust is fast enough to get under thad 12000ms server timeout, even with some test lists having millions of items.

Of course, the answer is no, but this was a fruitful exercise nonetheless. Lessons learned from it include:

  • 2018 edition module pathing
  • greater familiarity with the borrow checker, of course
  • proper syntax for lifetime annotations, as well as greater familiarity
  • the existence of HashSet, which I learned from the solutions to the kata that actually work