看了一下数据范围...这不是暴力吗...O( 15 * 2 ^ 10 * 10 ) 很轻松就可以过啊..-----------------------------------------------------------------#include#include#include#include#...
分类:
其他好文 时间:
2015-07-16 21:31:03
阅读次数:
106
Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2]have the following unique perm...
分类:
其他好文 时间:
2015-07-11 13:22:30
阅读次数:
122
1、字符表示法
类型 操作
权限
u +
r
g -
w
o =
x
a
类型代表修改权限的对象,u表示文件的用户,g表示文件所有者的群组,o表示非用户组用户,a表示ugo
操作 + 表示增加权限,- 表示减少权限,= 表示赋予权限
权限 r 表示只读,w 表示可写,x 表示可执行
[root@localhost ~] # mkdir perm
[ro...
分类:
系统相关 时间:
2015-07-11 12:15:06
阅读次数:
202
find查找命令常见参数:-name根据文件名寻找文件
-user根据文件拥有者寻找文件
-group根据文件所属组寻找文件
-perm根据文件权限寻找文件
-size根据文件大小寻找文件[±Sizek]
-type根据文件类型寻找文件,常见类型有:f(普通文件)、c(字符设备文件)、b(块设备文件)、l(符号链..
分类:
其他好文 时间:
2015-07-09 14:52:56
阅读次数:
131
这道题其实并没有说明这些数字互相不同, 但是因为有047 Permuations 2,则可以假定没有重复的数字, 使用递归。 代码如下class Solution: # @param {integer[]} nums # @return {integer[][]} def perm...
分类:
其他好文 时间:
2015-07-09 06:17:58
阅读次数:
103
一、场景这个命令是错误的 find ./ -perm +700 |ls -l这样才是正确的find ./ -perm +700 |xargs ls -l 二、用法[root@localhost tmp]# xargs --helpUsage: xargs [-0prtx] [--interactiv...
分类:
其他好文 时间:
2015-07-06 12:10:00
阅读次数:
118
Problem Description
Life is a game,and you lose it,so you suicide.
But you can not kill yourself before you solve this problem:
Given you a sequence of number a1, a2, ..., an.They are also a perm...
分类:
其他好文 时间:
2015-07-05 23:58:03
阅读次数:
376
1 #include 2 3 template 4 void Perm(T a[], int k, int n) 5 { 6 if(k==n-1) 7 { 8 for(int i=0;i<n;i++) 9 std::cout<<a[i]<<...
分类:
其他好文 时间:
2015-06-29 23:41:00
阅读次数:
122
一、Java堆溢出
内存溢出和内存泄露
内存溢出:指程序运行过程中无法申请到足够的内存而导致的一种错误。内存溢出通常发生于OLD段或Perm段垃圾回收后,仍然无内存空间容纳新的Java对象的情况。
内存泄露:指程序中动态分配内存给一些临时对象,但是对象不会被GC所回收,它始终占用内存。即被分配的对象可达但已无用
package com.weixuan.outofmemory;
imp...
分类:
其他好文 时间:
2015-06-26 09:17:51
阅读次数:
137
设计表:Users 用户列表 场:userid,username,userpermissionRoles 角色表 场:roleid,rolename,rolepermissionUserInRole 对应表用户角色 场:userid,roleidPermissionList 权限列表 字段:perm...
分类:
其他好文 时间:
2015-06-11 12:19:49
阅读次数:
110