2016年3月24日

【LeetCode】-- 73. Set Matrix Zeroes

摘要: 问题描述:将二维数组中值为0的元素,所在行或者列全set为0;https://leetcode.com/problems/set-matrix-zeroes/ 问题分析:题中要求用 constant space 的辅助空间。自然想到位优化。一个int可以存储31个元素的信息。这里刚好用到了字符串论文 阅读全文

posted @ 2016-03-24 14:04 暴力的轮胎 阅读(273) 评论(0) 推荐(0) 编辑

导航