#coding #rust
code: https://github.com/chengr4/coding-with-rust/blob/main/src/hash_map/leetcode49.rs
I highly recommend referring to Wallicent's solution on LeetCode; it is very elegant.
BTW, I spent a lot of time on this question. I lack too much knowledge :(