摘要:
Description: Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. Example: Solution: 这道题让我们输出从1~n中抽出k个数的所有可能性 这道题 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文