Find The Previous Or Next Item Matching A Search In A Rust Vec
Code
Results
all tests passed
-t- forward
There's probably a more native way to do this or a more refined data strucutre approach. Let me know if there are more straight-forwards solutions.