技术栈

leetcode 2904

Espresso Macchiato
2 年前
python·滑动窗口·leetcode medium·leetcode周赛367·leetcode 2904
Leetcode 2904. Shortest and Lexicographically Smallest Beautiful String这一题其实没啥好多说啥的,就是一个滑动窗口的思路,用滑动窗口考察每一个beautiful string的长度以及其是否为字母序最小即可。