Leetcode(查找)
文章平均质量分 83
luxialan
这个作者很懒,什么都没留下…
展开
-
Search for a Range
Search for a RangeGiven a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the order of O(log原创 2015-04-10 15:34:19 · 596 阅读 · 0 评论 -
Search a 2D Matrix
Search a 2D MatrixWrite an efficient algorithm that searches for a value in anm x n matrix. This matrix has the following properties:Integers in each row are sorted from left t原创 2015-04-11 10:19:58 · 425 阅读 · 0 评论 -
Happy Number
1. 题目Write an algorithm to determine if a number is “happy”.A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of th原创 2015-07-17 10:00:19 · 486 阅读 · 0 评论