摘要: Given a picture consisting of black and white pixels, and a positive integer N, find the number of black pixels located at some specific row Rand colu 阅读全文
posted @ 2017-03-07 13:57 CodesKiller 阅读(211) 评论(0) 推荐(0) 编辑
摘要: Given a picture consisting of black and white pixels, find the number of black lonely pixels. The picture is represented by a 2D char array consisting 阅读全文
posted @ 2017-03-07 04:02 CodesKiller 阅读(302) 评论(0) 推荐(0) 编辑
摘要: In LLP world, there is a hero called Teemo and his attacking can make his enemy Ashe be in poisoned condition. Now, given the Teemo's attacking ascend 阅读全文
posted @ 2017-03-07 03:01 CodesKiller 阅读(213) 评论(0) 推荐(0) 编辑
摘要: Assume you have an array of length n initialized with all 0's and are given k update operations. Each operation is represented as a triplet: [startInd 阅读全文
posted @ 2017-03-07 02:46 CodesKiller 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Given a binary array, find the maximum number of consecutive 1s in this array if you can flip at most one 0. Example 1: Note: The input array will onl 阅读全文
posted @ 2017-03-07 01:54 CodesKiller 阅读(267) 评论(0) 推荐(0) 编辑