摘要: Question: Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. Analysis: 给出一个m * n的矩阵,如果一个元素为0,则它整行整列都设为0. An 阅读全文
posted @ 2016-03-31 22:19 江湖小妞 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Question: Given an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If there isn't o 阅读全文
posted @ 2016-03-31 21:51 江湖小妞 阅读(258) 评论(0) 推荐(0) 编辑