摘要: 题目: 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 r 阅读全文
posted @ 2017-05-29 22:50 panini 阅读(147) 评论(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 sort 阅读全文
posted @ 2017-05-29 11:18 panini 阅读(150) 评论(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. 链接: http://leetcode.com/problems/set-matrix-zeroes/ 阅读全文
posted @ 2017-05-29 10:33 panini 阅读(123) 评论(0) 推荐(0) 编辑