摘要: Given an array nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k num 阅读全文
posted @ 2020-09-14 21:28 苗妙苗 阅读(87) 评论(0) 推荐(0) 编辑
摘要: Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two 阅读全文
posted @ 2020-09-14 10:29 苗妙苗 阅读(114) 评论(0) 推荐(0) 编辑
摘要: Given two 1d vectors, implement an iterator to return their elements alternately. Example: Input: v1 = [1,2] v2 = [3,4,5,6] Output: [1,3,2,4,5,6] Expl 阅读全文
posted @ 2020-09-14 00:07 苗妙苗 阅读(109) 评论(0) 推荐(0) 编辑