上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 27 下一页
摘要: Given m arrays, and each array is sorted in ascending order. Now you can pick up two integers from two different arrays (each array picks one) and cal 阅读全文
posted @ 2017-10-16 11:20 Jimmy_Cheng 阅读(234) 评论(0) 推荐(0) 编辑
摘要: Suppose you have a long flowerbed in which some of the plots are planted and some are not. However, flowers cannot be planted in adjacent plots - they 阅读全文
posted @ 2017-10-16 07:28 Jimmy_Cheng 阅读(322) 评论(0) 推荐(0) 编辑
摘要: Given an integer array, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the whole array will be 阅读全文
posted @ 2017-10-15 19:13 Jimmy_Cheng 阅读(2196) 评论(0) 推荐(0) 编辑
摘要: Given a 01 matrix M, find the longest line of consecutive one in the matrix. The line could be horizontal, vertical, diagonal or anti-diagonal. Exampl 阅读全文
posted @ 2017-10-07 01:00 Jimmy_Cheng 阅读(974) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Example 1: Note: 题目标签:Ar 阅读全文
posted @ 2017-10-05 00:16 Jimmy_Cheng 阅读(588) 评论(0) 推荐(0) 编辑
摘要: Given an array with n integers, you need to find if there are triplets (i, j, k) which satisfies following conditions: where we define that subarray ( 阅读全文
posted @ 2017-09-27 10:50 Jimmy_Cheng 阅读(1057) 评论(0) 推荐(0) 编辑
摘要: 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 R and col 阅读全文
posted @ 2017-09-26 10:36 Jimmy_Cheng 阅读(858) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers and an integer k, you need to find the number of unique k-diff pairs in the array. Here a k-diff pair is defined as an inte 阅读全文
posted @ 2017-09-26 06:16 Jimmy_Cheng 阅读(309) 评论(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-09-25 11:36 Jimmy_Cheng 阅读(433) 评论(0) 推荐(0) 编辑
摘要: In LOL 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-09-25 04:18 Jimmy_Cheng 阅读(378) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 27 下一页