码迷,mamicode.com
首页 >  
搜索关键字:two pointer    ( 13796个结果
[Shell] Compare two files.
查找file1中每一行是否在file2中,若在输出到InRight.txt, 若不在输出到NotInRight.txt. f1=$1f2=$2 while read mylinedo grepR=`grep $myline $f2` if [[ $grepR != "" ]]; then echo ...
分类:系统相关   时间:2020-06-04 14:01:58    阅读次数:63
【leetcode】1433. Check If a String Can Break Another String
题目如下: Given two strings: s1 and s2 with the same size, check if some permutation of string s1 can break some permutation of string s2 or vice-versa (i ...
分类:其他好文   时间:2020-06-03 23:41:15    阅读次数:108
intptr_t、uintptr_t数据类型
在64位的机器上,intptr_t和uintptr_t分别是long int、unsigned long int的别名;在32位的机器上,intptr_t和uintptr_t分别是int、unsigned int的别名。 /* Types for `void *' pointers. */ #if ...
分类:其他好文   时间:2020-06-03 23:35:30    阅读次数:162
1029. Two City Scheduling
There are 2N people a company is planning to interview. The cost of flying the i-th person to city A is costs[i][0], and the cost of flying the i-th p ...
分类:其他好文   时间:2020-06-03 23:34:27    阅读次数:72
【leetcode】1432. Max Difference You Can Get From Changing an Integer
题目如下: You are given an integer num. You will apply the following steps exactly two times: Pick a digit x (0 <= x <= 9). Pick another digit y (0 <= y < ...
分类:其他好文   时间:2020-06-03 23:33:43    阅读次数:70
chm的备份
<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>PCBPrint</title> <style type="text/css"> .moveUp{ width:15px; height:25px; display:inline-bl ...
分类:其他好文   时间:2020-06-03 20:17:24    阅读次数:58
【leetcode】1422. Maximum Score After Splitting a String
题目如下: Given a string s of zeros and ones, return the maximum score after splitting the string into two non-empty substrings (i.e. left substring and r ...
分类:其他好文   时间:2020-06-01 18:02:06    阅读次数:65
js字符串
单引号定义字符串 - 可以包含双引号 - 可以转义里面单引号 双引号定义字符创 - 可以包含单引号 - 可以转义里面双引号 `号 - 可以包含双引号和单引号 ...
分类:Web程序   时间:2020-06-01 13:59:12    阅读次数:69
el-table列固定后,列里面的元素没法选中
项目中用到了el-table组件,产品提了个需求,需要将表格最左侧的列全部固定 完成这个需求出现了一个bug 就是列中的元素没法选中 比如复选框没法勾选 后来经过调试发现,是由之前的人写的一行代码导致的 /*滚动条不灵活bug*/ /deep/ .el-table__fixed { pointer- ...
分类:其他好文   时间:2020-06-01 13:51:18    阅读次数:194
1. 两数之和
题目描述 leetcode - 1:https://leetcode-cn.com/problems/two-sum/ 解题关键 hashmap的使用 碎碎念 题目比较简单,暴力过很容易,不过借助hash可以降低时间复杂度,但是增加了空间的消耗。学习了hashmap的使用 key:value 定义 ...
分类:其他好文   时间:2020-06-01 01:06:46    阅读次数:77
13796条   上一页 1 ... 27 28 29 30 31 ... 1380 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!