题目大意: 有一个01矩阵,求其所有a*b的子矩阵中总和最大的子矩阵的权值和 思路: 二维树状数组 nlogn裸题完事 虽然poj数据太弱了,二维前缀和就过了 1 #include<iostream> 2 #include<cstdio> 3 #include<cmath> 4 #include<a ...
分类:
其他好文 时间:
2017-10-01 14:01:46
阅读次数:
153
【加载 AssetBundle 的四种方法】 1、AssetBundle.LoadFromMemoryAsync(byte[] binary, uint crc = 0); 返回AssetBundleCreateRequest.Use assetBundle property to get an A ...
分类:
其他好文 时间:
2017-09-30 21:54:12
阅读次数:
1880
传送门 Description Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structur ...
分类:
其他好文 时间:
2017-09-30 16:18:53
阅读次数:
163
class Solution { ListNode lnode=null; public TreeNode sortedListToBST(ListNode head) { int size=0; ListNode p=head; while(p!=null) { p=p.next; ... ...
分类:
其他好文 时间:
2017-09-30 10:16:30
阅读次数:
142
class Solution { public void flatten(TreeNode root) { TreeNode cur=root, pre=null; while(cur!=null) { if(cur.left!=null) { pre=cur.... ...
分类:
其他好文 时间:
2017-09-30 09:59:55
阅读次数:
162
练习一、用student用户登陆系统图形界面2.打开一个bash3.修改student的密码,把密码更新成”T3st1ngtlme”(主机字母和数字)4.显示当前系统时间5.显示当前系统时间,显示格式为:”小时:分钟:秒AM/PM”(AM/PM为上下午标识)6.显示“/usr/bin/clean-binary-files”的文件类型7...
分类:
系统相关 时间:
2017-09-29 19:56:49
阅读次数:
226
Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are n ...
分类:
其他好文 时间:
2017-09-29 16:48:31
阅读次数:
112
limit_conn_zone是限制同一个IP的连接数,而一旦连接建立以后,客户端会通过这连接发送多次请求,那么limit_req_zone就是对请求的频率和速度进行限制。 limit_conn_zone $binary_remote_address zone=addr:10m; limit_con ...
分类:
其他好文 时间:
2017-09-29 13:57:54
阅读次数:
213
public class Solution { public TreeNode buildTree(int[] inorder, int[] postorder) { return buildTree(inorder, 0, inorder.length-1, postorder, 0, posto... ...
分类:
其他好文 时间:
2017-09-29 13:22:01
阅读次数:
155
public class Solution { public TreeNode buildTree(int[] preorder, int[] inorder) { return buildTree(preorder, 0, preorder.length-1, inorder, 0, inorde... ...
分类:
其他好文 时间:
2017-09-29 12:42:31
阅读次数:
182