码迷,mamicode.com
首页 >  
搜索关键字:find    ( 24186个结果
在浏览器中使用jquery取得iframe中页面中指定元素的值的不同
自己使用aspx页面中嵌套了ascx的页面其中使用了iframe的一些内容,出现了同一个页面的两种取值的方式1. 在iframe的包含页面,需要使用iframe的页面中的元素,是需要使用$(window.frames["yourframename"].document).find("#yourele...
分类:Web程序   时间:2015-08-06 21:57:32    阅读次数:123
Dungeon Master ZOJ 1940【优先队列+广搜】
Problem Description You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be filled with rock. It takes one minute to move...
分类:其他好文   时间:2015-08-06 20:29:35    阅读次数:144
LeetCode(15) 3Sum
题目Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.Note: Elements in a triplet (a,b,c) must be...
分类:其他好文   时间:2015-08-06 18:31:12    阅读次数:95
hdoj-2095-find your present (2)【位异或】
find your present (2) Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 18431 Accepted Submission(s): 7101 Problem Description In the new ye...
分类:其他好文   时间:2015-08-06 18:24:53    阅读次数:105
LeetCode(14)Longest Common Prefix
题目Write a function to find the longest common prefix string amongst an array of strings.分析该题目是求一个字符串容器中所有字符串的最长公共前缀。AC代码class Solution { public: string longestCommonPrefix(vector& strs) {...
分类:其他好文   时间:2015-08-06 17:02:30    阅读次数:168
2.7-xargs和execx详解
execfind的参数find/var/log/-typef-mtime+10-execcp/rm{}{}.bak\;批量复制/改名-exec是find的一个参数\;是exec固定写法find/var/log/-typef-mtime+10|xargs-icp/mv{}{}.bak批量复制/改名xargs不需要-i参数时,就是列出来的文件,可以一股脑操作。比如xargsrm如果用-i的时候,..
分类:其他好文   时间:2015-08-06 13:33:09    阅读次数:130
LeetCode-Majority Element II
Given an integer array of size n, find all elements that appear more than ? n/3 ? times. The algorithm should run in linear time and in O(1) space. 此题是Majority Element的继续,关于此题可以移步至Majority Elem...
分类:其他好文   时间:2015-08-06 13:28:19    阅读次数:104
poj 1426 Find The Multiple
poj 1426 的传送门 题目大意:给你一个数,让你找能够整除这个数的而且只含有0和1 的数,比如说 input :3; output : 111; 可能有多个答案,只需要输出一个即可; 解题思路:用dfs搜索,只搜关于0和1 的数,详情见代码,,,,上代码:#include using namespace std; bool fo; void dfs(unsigne...
分类:其他好文   时间:2015-08-06 13:26:26    阅读次数:126
[leedcode 212] Word Search II
Given a 2D board and a list of words from the dictionary, find all words in the board.Each word must be constructed from letters of sequentially adjac...
分类:其他好文   时间:2015-08-06 12:35:05    阅读次数:118
uva 11987 Almost Union-Find (并查集)
题目:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=18692 题意:设计一个并查集,支持三种操作①将两个集合合并②将一个集合的一个元素移到另外一个集合③查询集合元素个数和元素之和 分析:由于操作②可能导致将整个集合移走(移走根节点),那么初始化的时候,以id+N为根节点就好了。 代码: #include #inc...
分类:其他好文   时间:2015-08-06 11:14:34    阅读次数:110
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!