码迷,mamicode.com
首页 >  
搜索关键字:not find    ( 24186个结果
程序员被提 bug 之后的反应,太真实了!
本文来源网络 杀一个程序员不需要用枪,改三次需求就可以了! 对于程序员来说、没老婆不悲催。悲催的是:没老婆、控制台还不停的提示你:Error:could not find the object 假如生活欺骗了你,不要悲伤不要心急。《代码大全》会一直陪伴着你…… 程序员被提bug之后的反应: a.怎么 ...
分类:其他好文   时间:2020-04-07 11:08:03    阅读次数:86
十九、文本操作——文件查找find
文件查找命令find find路径查找条件[补充条件]在目录当中找到指定的文件(1)知道文件的完整名称,进行查找user1@SC02ZRC4KMD6N/etc%findpasswdpasswd(2)查找某路径以及子路径是否包含文件user1@SC02ZRC4KMD6N/%findetc/-namepasswdetc//pam.d/passwdetc//passwd(3)使用通配符进行模糊匹配use
分类:其他好文   时间:2020-04-07 00:18:59    阅读次数:75
P1230 智力大冲浪
"智力大冲浪" 翻了翻题解发现没有并查集解法(眼瞎勿怪),于是水一发题解。(貌似跑得比某些题解快) 首先肯定是尽量做减少价格大的任务,所以就按照价值从大到小排个序。 然后就有并查集的玄学操作了: 1. 找到商品 $i$ 的祖先 $find(i)$。 2. 倘若 $find(i)!=0$ ,加上 $i ...
分类:其他好文   时间:2020-04-06 21:03:56    阅读次数:81
How Many Answers Are Wrong HDU - 3038 (经典带权并查集)
题目大意:有一个区间,长度为n,然后跟着m个子区间,每个字区间的格式为x,y,z表示[x,y]的和为z。如果当前区间和与前面的区间和发生冲突,当前区间和会被判错,问:有多少个区间和会被判错。 题解:x,y,z表示从x开始到y的所有数字的和,那么x-1就表示从(x-1,y]的区间和。我们可以对区间的左 ...
分类:其他好文   时间:2020-04-06 20:45:33    阅读次数:53
linux/windows解决/关闭端口占用
Linux 找到占用端口的进程信息: netstat -lnp|grep 端口号 例如:netstat -lnp|grep 8080 就是找到正在使用8080端口的进程 关闭进程: kill -9 进程PID 例如:kill -9 6666 就是杀死进程PID为6666的进程 Windows 找到占 ...
分类:Windows程序   时间:2020-04-06 20:21:53    阅读次数:100
LeetCode 564. Find the Closest Palindrome (构造)
题意: 给一个数字n 求离n最近(且不等)的回文串 存在多个答案返回最小的 首先很容易想到 将数字分为两段,如 12345 -> 123/45,然后将后半段根据前面的进行镜像重置 123/45 -> 12321 那,如果数字刚好是回文串,就把前半段-1就好了 但是存在以下例外,就是当前半段 +1 或 ...
分类:其他好文   时间:2020-04-06 15:59:20    阅读次数:64
ALSA driver---register codec
参考: https://elixir.bootlin.com/linux/v4.9.218/source/sound/soc/soc-core.c#L3314 https://blog.csdn.net/DroidPhone/article/details/7283833 在移动设备中,Codec的 ...
分类:其他好文   时间:2020-04-06 15:15:32    阅读次数:67
存储过程
# 无参存储过程 DELIMITER $$ CREATE PROCEDURE pro_insert_employees() BEGIN insert into employees (first_name,last_name) VALUES("1","1"),("2","2"),("3","3"); ...
分类:其他好文   时间:2020-04-06 13:40:18    阅读次数:51
[LeetCode] 53. Maximum SubArray
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example: Inpu ...
分类:其他好文   时间:2020-04-06 11:37:02    阅读次数:81
[Algo] Find Pair with Given Sum
Given a list of positive integers nums and an int target, return indices of the two numbers such that they add up to a target - 30. Conditions: You wi ...
分类:其他好文   时间:2020-04-06 09:49:05    阅读次数:76
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!