摘要:
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue. 阅读全文
posted @ 2017-05-31 20:42
JeffNice
阅读(124)
评论(0)
推荐(0)
摘要:
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
* Integers in each row are sorted from left to right.
* The first integer of each row is greater than the last integer of the previous row. 阅读全文
posted @ 2017-05-31 20:19
JeffNice
阅读(119)
评论(0)
推荐(0)
摘要:
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. 阅读全文
posted @ 2017-05-31 19:33
JeffNice
阅读(121)
评论(0)
推荐(0)

浙公网安备 33010602011771号