TheAlgorithms / Rust

All Algorithms implemented in Rust
MIT License
22.21k stars 2.17k forks source link

add check_permutation.rs #711

Closed mengfansheng-git closed 4 months ago

mengfansheng-git commented 4 months ago

Given two strings s1 and s2. Determine whether the characters of one of the strings can be rearranged to become another string.

codecov-commenter commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.79%. Comparing base (260b448) to head (ac3338c).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #711 +/- ## ======================================= Coverage 94.78% 94.79% ======================================= Files 298 299 +1 Lines 22161 22188 +27 ======================================= + Hits 21006 21033 +27 Misses 1155 1155 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.