Ryan’s leetcode Blog
2015年4月15日星期三
Merge Sorted Array leetcode
›
Given two sorted integer arrays A and B, merge B into A as one sorted array. Note: You may assume that A has enough space (size that is ...
Remove Duplicates from Sorted Array II leetcode
›
Follow up for "Remove Duplicates": What if duplicates are allowed at most twice ? For example, Given sorted array A = [1,1,...
Remove Duplicates from Sorted Array leetcode
›
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate...
2015年4月14日星期二
Search a 2D Matrix II
›
Write an efficient algorithm that searches for a value in an m x n matrix, return the occurrence of it. This matrix has the following pro...
Find Peak element
›
A peak element is an element that is greater than its neighbors. Given an input array where num[i] ≠ num[i+1] , find a peak element and ...
First Bad Version
›
The code base version is an integer and start from 1 to n. One day, someone commit a bad version in the code case, so it caused itself and ...
2 条评论:
2015年4月13日星期一
Search a 2D Matrix leetcode
›
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in ea...
‹
›
主页
查看网络版本