摘要:
[抄题]: Given a list of non-negative numbers and a target integer k, write a function to check if the array has a continuous subarray of size at least 2 阅读全文
posted @ 2018-05-16 23:42
苗妙苗
阅读(111)
评论(0)
推荐(0)
摘要:
[抄题]: There is a brick wall in front of you. The wall is rectangular and has several rows of bricks. The bricks have the same height but different wid 阅读全文
posted @ 2018-05-16 16:59
苗妙苗
阅读(149)
评论(0)
推荐(0)
摘要:
[抄题]: Given a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1. Example 1: Example 2: [暴力解法]: 时间分析: 空间分析: [ 阅读全文
posted @ 2018-05-16 15:41
苗妙苗
阅读(134)
评论(0)
推荐(0)
摘要:
[抄题]: Given an array of integers with possible duplicates, randomly output the index of a given target number. You can assume that the given target nu 阅读全文
posted @ 2018-05-16 11:13
苗妙苗
阅读(318)
评论(0)
推荐(0)