摘要: Problem : Given an array with n objects colored red, white or blue, sort them in place so that objects of the same color are adjacent, with the colors 阅读全文
posted @ 2020-02-01 10:17 littledy 阅读(83) 评论(0) 推荐(0)
摘要: Problem : 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 ar 阅读全文
posted @ 2020-02-01 09:31 littledy 阅读(103) 评论(0) 推荐(0)
摘要: Problem : Given a $m \times n$ matrix, if an element is 0, set its entire row and column to 0. Do it in place. Example 1: Example 2: Follow up: A stra 阅读全文
posted @ 2020-02-01 08:27 littledy 阅读(90) 评论(0) 推荐(0)