摘要: Leetcode.283 Move Zeroes Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero e 阅读全文
posted @ 2020-07-28 12:01 mhp 阅读(92) 评论(0) 推荐(0)
摘要: Leetcode Introduction 本文旨在将leetcode的题型分类 Pattern: Sliding window 滑动窗口类型的题目经常是用来执行数组或是链表上某个区间(窗口)上的操作。比如找最长的全为1的子数组长度。滑动窗口一般从第一个元素开始,一直往右边一个一个元素挪动。 Lee 阅读全文
posted @ 2020-07-28 10:59 mhp 阅读(159) 评论(0) 推荐(0)