Commit a38b2f9
authored
refine(reverse_it): faster and more readable solution (#162)
* refactor(solutions/reverse_it): faster and more readable solution
- Eliminates unnecessary borrowing (&nbr)
- Avoids intermediate collection (Vec<char>)
* refactor(solutions/reverse_it): more concise and idiomatic code1 parent 4c70d5f commit a38b2f9
1 file changed
+4
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
9 | 6 | | |
10 | 7 | | |
11 | 8 | | |
| |||
0 commit comments