码迷,mamicode.com
首页 >  
搜索关键字:median of two sorted    ( 17004个结果
415. Add Strings
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
个人记录-LeetCode 77. Combinations
问题: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
Emmet语法快速生成HTML结构
代码示例: 在编辑器中输入 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
PAT.1066 Root of AVL Tree(平衡树模板题)
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
java join--Thread类
join Thread类 设计一个模型 1.有两个线程 One Two ;Two加入到One里面 2.设计模型的时候 two线程在one的run里面创建 保证两个有先后顺序 3.two.join(); 无参数==0 有参数==2000 synchronized锁 非常的厉害 一旦对象被锁定 不释放的 ...
分类:编程语言   时间:2020-06-05 22:48:25    阅读次数:86
Linux性能监控-htop
htop在epel YUM源中 F1:显示帮助信息 F2:配置界面 F3:进程搜索 F4:进程过滤 F3进程搜索会将光标定位到符合搜索条件的进程上,按F3跳到下一个 F4是将所有符合条件的进程筛选出来 F5:显示进程树/sorted排序 再按F3或者F4查找 F6排序 在左侧选择想要按照哪个属性排序 ...
分类:系统相关   时间:2020-06-05 21:29:52    阅读次数:85
Leetcode--合并两个有序数组(88)
题目描述: 给你两个有序整数数组 nums1 和 nums2,请你将 nums2 合并到 nums1 中,使 nums1 成为一个有序数组。 思路一:直接利用python中的sorted()函数 class Solution: def merge(self, nums1: List[int], m: ...
分类:编程语言   时间:2020-06-04 21:44:49    阅读次数:77
多个ssh key 配置多个网址
多个 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
[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
17004条   上一页 1 ... 34 35 36 37 38 ... 1701 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!