码迷,mamicode.com
首页 >  
搜索关键字:find    ( 24186个结果
[Leetcode]Lowest Common Ancestor of a Binary Tree
Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the definition of LCA on Wikipedia: “The lowest common ancestor is defined between two node...
分类:其他好文   时间:2015-07-30 21:23:33    阅读次数:104
HDU 2199 Can you solve this equation?
Can you solve this equation?Problem DescriptionNow,given the equation 8*x^4 + 7*x^3 + 2*x^2 + 3*x + 6 == Y,can you find its solution between 0 ...
分类:其他好文   时间:2015-07-30 20:51:40    阅读次数:121
hdu 1596 find the safest road(最短路)
hdu 1596 find the safest roadDescription XX星球有很多城市,每个城市之间有一条或多条飞行通道,但是并不是所有的路都是很安全的,每一条路有一个安全系数s,s是在 0 和 1 间的实数(包括0,1),一条从u 到 v 的通道P 的安全度为Safe(P) = s(e1)*s(e2)…*s(ek) e1,e2,ek是P 上的边 ,现在8600 想出去旅游,面对这这...
分类:其他好文   时间:2015-07-30 19:30:11    阅读次数:99
LeetCode 14: Longest Common Prefix
Longest Common Prefix Write a function to find the longest common prefix string amongst an array of strings. 求最长公共前缀。 代码如下: class Solution { public: string longestCommonPrefix(vect...
分类:其他好文   时间:2015-07-30 19:28:27    阅读次数:109
HDU 2141 Can you find it?
Can you find it?Problem DescriptionGive you three sequences of numbers A, B, C, then we give you a number X. Now you need to calculate if yo...
分类:其他好文   时间:2015-07-30 19:26:23    阅读次数:126
批处理获取操作系统版本信息
为了使得批处理命令获取更大的通用性,有时需要获取操作系统版本。今天为此搜了一些资料,网上的说法是Ver、注册表、WMI都可以。我研究了一下,发现还是Ver命令最为成熟,为此综合各家做法写下了下面一个批处理文件:@echo offclsver | find "4.0." > NUL && goto ....
分类:其他好文   时间:2015-07-30 19:25:06    阅读次数:109
hdoj 2141 Can you find it?【二分查找+暴力】
Can you find it?Time Limit: 10000/3000 MS (Java/Others)Memory Limit: 32768/10000 K (Java/Others)Total Submission(s): 17036Accepted Submission(s): 4337...
分类:其他好文   时间:2015-07-30 19:20:15    阅读次数:82
HDOJ1238(string)
string中自带的find(cosnt char *)可完成字符串匹配,该题目的是练习string的使用。字符串长度较小,暴力即可。#include#include#includeusing namespace std;const int SIZE=102;int main(){ int T...
分类:其他好文   时间:2015-07-30 19:01:21    阅读次数:84
overthewire朝花夕拾
bandit: cat特殊字符文件名 - cat ./- 空格 cat "abc def" or cat abc\ def 列出隐藏文件:ll du -ab 递归列出文件大小,以字节为单位 find -group bandit6 -user bandit7 -size 33c #owned by u...
分类:其他好文   时间:2015-07-30 18:56:07    阅读次数:144
jquery零散小结(公司大神不吝赐教,从话语中零散记录)
$(document).ready(function () { $("#chongzhi").click(function () { $(".table_1").find("input:not([disabled]),textarea")....
分类:Web程序   时间:2015-07-30 16:51:14    阅读次数:122
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!