会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
canexjtuzju
记录
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
2014年9月6日
LeetCode--Combination Sum
摘要: 由于需要就地保存清零信息,所以把信息保存在第一行和第一列 1 class Solution { 2 public: 3 void setZeroes(vector > &matrix) { 4 const int ROW = matrix.size(); 5 ...
阅读全文
posted @ 2014-09-06 23:31 canexjtuzju
阅读(142)
评论(0)
推荐(0)
编辑
LeetCode--Binary Tree Level Order Traversal
摘要: 用两个队列实现,交叉使用,达到判断层的目的 1 /** 2 * Definition for binary tree 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *right...
阅读全文
posted @ 2014-09-06 23:17 canexjtuzju
阅读(144)
评论(0)
推荐(0)
编辑