码迷,mamicode.com
首页 >  
搜索关键字:find    ( 24186个结果
c++犯过的严重错误
1、if(num == 0)写成了if(num = 0)导致软件运行一直崩溃且找不到原因,浪费了很大的代价,以后我写这种语法的时候一直写if(0 == num) 2、if (sting.find("hello") > 0)使用find语句以为没有找到字串会返回负数,但实际情况是返回一个很大的随机正数 ...
分类:编程语言   时间:2016-10-20 00:45:02    阅读次数:134
Error:Could not find com.android.tools.build:gradle:2.14.1.
你只要一步把Android Plugin Version改为最新的:2.2.0-beta3(这是目前最新的)。直接在Project Structru->Project->Android Plugin Version 中改了就好! 查看最新的Android Plugin Version:https:/ ...
分类:移动开发   时间:2016-10-20 00:05:01    阅读次数:569
常用shell命令操作
1.找出系统中所有的*.c 和*.h 文件 $find / -name "*.cpp" -o -name "*.h" 2.设定 eth0 的 IP 地址为 192.168.100.2,掩码为 255.255.255.0,mtu 为 1024 http://blog.chinaunix.net/uid ...
分类:系统相关   时间:2016-10-19 20:01:17    阅读次数:210
文件查找 find命令
文件查找locate非实时,查找是根据全系统文件数据库进行;模糊匹配;速度快;#updatedb,手动生成文件数据库find实时;精确;支持众多查找标准(文件名,文件类型,文件权限查找,正则表达式匹配查找);遍历指定目录中的所有文件完成查找,速度慢;#find查找路径查找标准查找..
分类:其他好文   时间:2016-10-19 14:18:19    阅读次数:272
leetcode 85 Maximal Rectangle ----- java
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area. For example, given the following ...
分类:编程语言   时间:2016-10-19 13:20:22    阅读次数:175
c++ string.find()函数的陷阱
string.find(char *)查找字符串中是否包含子串 找到:返回第一个索引 没有找到:返回一个很大的随机数字而不是返回负数(这是个坑) 所以不能这么写if (string.find(str) > 0) 必须这样写if (string.find(str)!= npos) string s(" ...
分类:编程语言   时间:2016-10-19 03:10:29    阅读次数:204
string类问题之滑动窗口类型
Longest Substring Without Repeating Characters Given a string, find the length of the longest substring without repeating characters. Examples: Given  ...
分类:其他好文   时间:2016-10-19 03:02:58    阅读次数:171
leetcode 84 Largest Rectangle in Histogram ----- java
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the hist ...
分类:编程语言   时间:2016-10-19 02:33:38    阅读次数:157
并查集的简介
最近做题用到了并查集索性就把自己所掌握的相关知识总结一下。 并查集(union-find sets),CLRS上称为disjoint-set,是一组不相交的动态集合S1,S2,....Sk。它能够实现较快的合并和判断元素所在集合的操作,应用比较广泛,如其求无向图的连通分量个数,利用Kruskar算法 ...
分类:其他好文   时间:2016-10-19 02:13:51    阅读次数:214
[LeetCode] Sentence Screen Fitting 调整屏幕上的句子
Given a rows x cols screen and a sentence represented by a list of words, find how many times the given sentence can be fitted on the screen. Note: Ex ...
分类:其他好文   时间:2016-10-19 01:34:34    阅读次数:261
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!