摘要: Description: Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. Example: Solution: 这道题让我们输出从1~n中抽出k个数的所有可能性 这道题 阅读全文
posted @ 2019-04-11 20:57 Doris7 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Description: 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 col 阅读全文
posted @ 2019-04-11 20:55 Doris7 阅读(154) 评论(0) 推荐(0) 编辑
摘要: Description: 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 阅读全文
posted @ 2019-04-11 20:52 Doris7 阅读(229) 评论(0) 推荐(0) 编辑
摘要: Description: Given a m x 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 straight 阅读全文
posted @ 2019-04-11 14:45 Doris7 阅读(164) 评论(0) 推荐(0) 编辑