Kindly review the code the hardway , to optimize and make it efficient.
Stackoverflow link of my code
programming challenge - Solution to LeetCode Two Sum problem in Rust - Code Review Stack Exchange
Kindly review the code the hardway , to optimize and make it efficient.
Stackoverflow link of my code
programming challenge - Solution to LeetCode Two Sum problem in Rust - Code Review Stack Exchange
Create a hashmap of target - Vec. Then, instead of iterating through the Vec in the inner loop, just lookup in the hashMap and see if it's Some vs None.
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.