像这种DFS的题目,常见的写法无外乎两种,使用recursion,
或者用Stack。本文采用了stack的方式。做完后积累的经验有:像这种在一个ArrayList里面罗列可能的path的题目,recursion的参数一般包括:包含最终结果的集合(ArrayList),input(String),递...
分类:
其他好文 时间:
2014-06-13 08:34:10
阅读次数:
220
Q: #includeint main(){char A,B,C,D,s;float z;float
x,y;printf("if you want add input A\nsubtraction input B\nThe multiplication
input C\ndivision inpu...
分类:
其他好文 时间:
2014-06-10 20:16:29
阅读次数:
243
原题地址:https://oj.leetcode.com/problems/roman-to-integer/题意:Given
a roman numeral, convert it to an integer.Input is guaranteed to be within the
range f...
分类:
编程语言 时间:
2014-06-10 19:34:10
阅读次数:
255
湖南师范大学 11460 区间求最值
区间求最值
Problem description
给定一个长度为N 的数组,有q个询问,每个询问是求在数组的一段区间内那个元素的因子的个数最大,比如24的因子的个数就是8。
Input
首先是一个整数t,表示有t组测试数据,每组测试数据的第一行是一个整数N(1i(1ii,r...
分类:
其他好文 时间:
2014-06-10 18:26:09
阅读次数:
260
附网址:http://qt-project.org/doc/qt-5/qtquick-usecase-userinput.html
Supported Types of User Input
—— 用户输入的支持类型
Qt Quick模块提供了支持常用用户输入的支持类型(types),包括鼠标和触摸事件,文本输入和按键按下事件。其他模块也分别提供了针对其他用户输入的响应类型(例如,Q...
分类:
其他好文 时间:
2014-06-10 18:15:49
阅读次数:
314
原题地址:https://oj.leetcode.com/problems/integer-to-roman/题意:Given
an integer, convert it to a roman numeral.Input is guaranteed to be within the
range f...
分类:
编程语言 时间:
2014-06-10 17:06:11
阅读次数:
261
原理其实很简单:input的text与password1.把鼠标停放在
密码区,单机右键”查看原素“得到的代码与文本区块进行切换就可以查看出密码了
分类:
Web程序 时间:
2014-06-10 16:59:45
阅读次数:
261
Given an input string, reverse the string word by word.
For example,
Given s = "the sky is blue",
return "blue is sky the".
Clarification:
What constitutes a word?
A sequence of non-space ch...
分类:
其他好文 时间:
2014-06-10 11:12:06
阅读次数:
185
Description
Problem A
The Most Distant State
Input: standard input
Output: standard output
The 8-puzzle is a square tray in which eight square tiles are placed. The remaining ninth square ...
分类:
其他好文 时间:
2014-06-10 07:59:06
阅读次数:
335
1、先运行vsftpd服务:
#service vsftpd start
2、通过iptables开放21号端口
(1) 先查看iptables设置:
#iptables -nL
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT al...
分类:
系统相关 时间:
2014-06-10 07:46:14
阅读次数:
392