终于做对DFS了。这题就是简单的DFS吧,不过对我而言,我是费了不少力气。
#include
#include
#include
#include
#include
using namespace std;
char s[15];
bool isok,visited[15];
int len;
void dfs(int target,char *ans,int cnt,int id)//cnt用...
分类:
其他好文 时间:
2015-01-13 21:32:54
阅读次数:
174
centos安装iscsi服务端yuminstallscsi-target-utilsiscsi-initiator-utils客户端安装iscsi-initiator-utilsscsi-target-utils包中的主要配置文件以及命令:/etc/tgt/target.conf:主要配置文件/usr/sbin/tgt-admin:在线查询、删除target等功能的命令/usr/sbin/tgtd:主要提供i..
分类:
其他好文 时间:
2015-01-13 17:57:03
阅读次数:
228
需求:通过Model类属性动态生成DataGrid表格
1、定义ColumnTitle注解类
package com.mrchu.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;...
分类:
其他好文 时间:
2015-01-13 17:47:09
阅读次数:
151
This is a link
始终为属性值加引号
属性值应该始终被包括在引号内。双引号是最常用的,不过使用单引号也没有问题。
在某些个别的情况下,比如属性值本身就含有双引号,那么您必须使用单引号,例如:
name='Bill "HelloWorld" Gates'
target="_blank">Visit W3...
分类:
Web程序 时间:
2015-01-13 14:28:09
阅读次数:
171
Combination sum:Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T....
分类:
其他好文 时间:
2015-01-13 14:08:00
阅读次数:
100
https://oj.leetcode.com/problems/two-sum/Given an array of integers, find two numbers such that they add up to a specific target number.The function t...
分类:
其他好文 时间:
2015-01-13 14:07:07
阅读次数:
130
Follow up for "Search in Rotated Sorted Array":
What if duplicates are allowed?
Would this affect the run-time complexity? How and why?
Write a function to determine if a given target is in the...
分类:
其他好文 时间:
2015-01-13 12:33:11
阅读次数:
118
事件对象:在触发DOM上的事件时dou都会产生一个对象,事件对象eventDOM中的事件对象1)type属性 用于获取事件类型2)target属性 用于获取事件目标3)stopPropagation()方法 用于阻止事件冒泡4)preventDefault()阻止默认行为bubbles,cansel...
分类:
其他好文 时间:
2015-01-13 12:23:54
阅读次数:
256
question:
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the ...
分类:
其他好文 时间:
2015-01-13 10:32:21
阅读次数:
139
1,将iso转换为imghdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso2,查看U盘编号diskutil list3,unmount U盘,但不ejectdiskutil unmountDisk /de...
分类:
系统相关 时间:
2015-01-12 23:48:28
阅读次数:
263