题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1068
#include
#include
#include
using namespace std;
int n;
int used[505];
int link[505][505];
int boy[505];
int find(int x){
int i;
f...
分类:
其他好文 时间:
2015-08-11 21:28:32
阅读次数:
154
题目Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree.思路这一次说的是一个普通的二叉树,给出两个节点,求他们的最低公共父节点。
回想一下,当这棵二叉树是二分查找树的时候的解决方案:
二分查找树解法:http://blog.csdn.net/langduhualangd...
分类:
其他好文 时间:
2015-08-11 21:26:38
阅读次数:
114
1 // 2 public List find(Station entity) { 3 List reuslt = null; 4 5 // 字符串辅助类 6 StringBuffer hql = new StringBuffer...
分类:
Web程序 时间:
2015-08-11 21:22:52
阅读次数:
152
# Find the model$ system_profiler -detailLevel mini | grep "Model Identifier:"Model Identifier: MacBookPro8,2# Move and backup the file$ mkdir -p ~/ba...
分类:
其他好文 时间:
2015-08-11 21:10:14
阅读次数:
166
问题描述You are given a string,s, and a list of words,words, that are all of the same length. Find all starting indices of substring(s) insthat is a conca...
分类:
其他好文 时间:
2015-08-11 21:05:31
阅读次数:
109
find查找路径查找标准处理动作范例find/etc-name‘passwd’根据文件名查找find./-perm644查找文件权限为644的find./-mmin-5五分钟之内访问过的文件有哪些find/etc-size10k所有9-10K的文件find/etc-size-10k所有小于10k的find/tmp-nouser-a-typed找tmp下没有属主,并且类型为目..
分类:
其他好文 时间:
2015-08-11 19:04:24
阅读次数:
132
find . -name "*.rpm" -exec mv {} /root/rhevm-packages/ \;如何mount虚拟机的磁盘镜像: fdisk -ul /path/to/image You must set cylinders. You can do this from the ex...
分类:
系统相关 时间:
2015-08-11 18:33:58
阅读次数:
158
1、对于js,没有系统的学习。有要经常的用到,每次都是百度查找,为了以后能查询。 (1)、 $(function () { $('.restbtn').on("click", function () { $(this).parents("tr").find('input[id=...
分类:
Web程序 时间:
2015-08-11 18:24:00
阅读次数:
117
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.For example, given the following matr...
分类:
其他好文 时间:
2015-08-11 18:23:52
阅读次数:
95
Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)You have t...
分类:
其他好文 时间:
2015-08-11 18:23:38
阅读次数:
116