摘要: 题目描述: 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 阅读全文
posted @ 2018-03-12 13:08 宵夜在哪 阅读(99) 评论(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. Follow up: Did you use extra space? A straight for 阅读全文
posted @ 2018-03-12 00:45 宵夜在哪 阅读(88) 评论(0) 推荐(0) 编辑