Given two sequences pushed and popped with distinct values, return true if and only if this could have been the result of a sequence of push and pop o ...
分类:
其他好文 时间:
2020-06-08 00:29:09
阅读次数:
53
package LeetCode_1143 /** * 1143. Longest Common Subsequence * https://leetcode.com/problems/longest-common-subsequence/description/ * * Given two str ...
分类:
其他好文 时间:
2020-06-07 12:48:01
阅读次数:
57
Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2. Note: The length of both num1 and num2 is < 5100 ...
分类:
其他好文 时间:
2020-06-06 11:10:45
阅读次数:
57
问题:Given two integers n and k, return all possible combinations of k numbers out of 1 … n. For example,If n = 4 and k = 2, a solution is: [ [2,4], [3, ...
分类:
其他好文 时间:
2020-06-06 01:16:22
阅读次数:
93
代码示例: 在编辑器中输入 div.one#two$*3>p{我是$}*2+a{a标签} ,按Tab键,会生成如下htmL <div class="one" id="two1"> <p>我是1</p> <p>我是2</p> <a href="">a标签</a></div> <div class="o ...
分类:
Web程序 时间:
2020-06-06 01:13:44
阅读次数:
118
1066 Root of AVL Tree (25分) An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node diff ...
分类:
其他好文 时间:
2020-06-05 23:18:28
阅读次数:
73
join Thread类 设计一个模型 1.有两个线程 One Two ;Two加入到One里面 2.设计模型的时候 two线程在one的run里面创建 保证两个有先后顺序 3.two.join(); 无参数==0 有参数==2000 synchronized锁 非常的厉害 一旦对象被锁定 不释放的 ...
分类:
编程语言 时间:
2020-06-05 22:48:25
阅读次数:
86
# java在浮点型运算时是非精确计算,如下 System.out.println(0.05 + 0.01);// 0.060000000000000005 System.out.println(1.0 - 0.42);// 0.5800000000000001 System.out.println ...
分类:
其他好文 时间:
2020-06-05 13:25:34
阅读次数:
62
多个 ssh key 配置多个网站 一、生成ssh key ssh-keygen -t rsa -C "你的邮箱" -f ~/.ssh/id_rsa_one ssh-keygen -t rsa -C "你的邮箱" -f ~/.ssh/id_rsa_two # 不添加-f 参数 会默认将私钥保存在~/ ...
分类:
其他好文 时间:
2020-06-04 20:05:42
阅读次数:
65
查找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