摘要: DescriptionFor a given sorted array (ascending order) and a target number, find the first index of this number in O(log n) time complexity.If the targ 阅读全文
posted @ 2017-04-26 20:21 panini 阅读(262) 评论(0) 推荐(0) 编辑
摘要: DescriptionGiven a target number and an integer array sorted in ascending order. Find the total number of occurrences of target in the array.ExampleGi 阅读全文
posted @ 2017-04-26 20:20 panini 阅读(511) 评论(0) 推荐(0) 编辑
摘要: 题目: An image is represented by a binary matrix with 0 as a white pixel and 1 as a black pixel. The black pixels are connected, i.e., there is only one 阅读全文
posted @ 2017-04-26 11:00 panini 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 题目: The set [1,2,3,…,n] contains a total of n! unique permutations. By listing and labeling all of the permutations in order,We get the following sequ 阅读全文
posted @ 2017-04-26 06:14 panini 阅读(191) 评论(0) 推荐(0) 编辑