摘要: **字符串原地修改经常遇到的一类题,双指针一个用于写入,一个用于扫描,互不干扰,各司其职。** **这类双指针可以模拟栈,很多情况下比真正的栈要更灵活好用。** 题目:[https://leetcode.cn/problems/reverse-words-in-a-string/](https:// 阅读全文
posted @ 2023-05-25 11:09 linukey 阅读(50) 评论(0) 推荐(0)