首诗
【LBLD】我写了首诗,让你闭着眼睛也能写对二分搜索
我写了首诗,让你闭着眼睛也能写对二分搜索 704. 二分查找 class Solution { public: int search(vector<int>& nums, int target) { int left = 0, right = nums.size() - 1; while (left ......
【LBLD】我写了首诗,把滑动窗口算法算法变成了默写题
【LBLD】我写了首诗,把滑动窗口算法算法变成了默写题 76.最小覆盖子串 class Solution { public: string minWindow(string s, string t) { unordered_map<char, int> need, window; for (char ......