There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity sh ...
分类:
其他好文 时间:
2020-01-23 22:59:05
阅读次数:
154
const int N=120; int father[N]; int rank1[N]; void init(int Size) { for(int i=1;i<=Size;++i) father[i]=i,rank1[i]=0; } int Find(int x) { while(x!=fath ...
分类:
其他好文 时间:
2020-01-23 19:56:58
阅读次数:
58
python实现: 依赖: glob,pydub "Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work"解决办法: ffmpeg官网下载下载 windows 对应的 static 版本。接下来我们把这个 bi ...
分类:
其他好文 时间:
2020-01-23 18:22:55
阅读次数:
221
506 相对名次 给出 N 名运动员的成绩,找出他们的相对名次并授予前三名对应的奖牌。前三名运动员将会被分别授予 “金牌”,“银牌” 和“ 铜牌”("Gold Medal", "Silver Medal", "Bronze Medal")。 (注:分数越高的选手,排名越靠前。) 示例 1: 提示: ...
分类:
其他好文 时间:
2020-01-23 16:46:05
阅读次数:
89
# 鼠标悬浮 from selenium.webdriver import ActionChains data_gslx = driver.find_element_by_xpath('//div[text()="有限责任公司"]') #选择公司类型 action = ActionChains(dr ...
分类:
其他好文 时间:
2020-01-23 14:09:54
阅读次数:
86
源码如图: 直接使用Select类进行选择,selector(driver.find_element_by_id("Agency")) 会提示如下信息 raise exception_class(message, screen, stacktrace) selenium.common.excepti ...
分类:
其他好文 时间:
2020-01-23 14:07:59
阅读次数:
137
棋盘问题 https://mp.csdn.net/postedit/104075274 Find a way https://mp.csdn.net/postedit/104073719 Oil Deposits https://mp.csdn.net/postedit/104073305 BFS例 ...
分类:
其他好文 时间:
2020-01-23 14:00:26
阅读次数:
80
//1.进入my_test数据库use my_test //2.向数据库的user集合中插入一个文档 db.users.insert({ username:"sunwukong"}); //3.查询user集合中的文档db.users.find(); //4.向数据库的user集合中插入一个文档 d ...
分类:
数据库 时间:
2020-01-23 12:26:11
阅读次数:
99
Given a binary tree, find the leftmost value in the last row of the tree. Example 1: Input: 2 / \ 1 3 Output: 1 Example 2: Input: 1 / \ 2 3 / / \ 4 5 ...
分类:
其他好文 时间:
2020-01-23 11:15:55
阅读次数:
75
You need to find the largest value in each row of a binary tree. Example: Input: 1 / \ 3 2 / \ \ 5 3 9 Output: [1, 3, 9] class Solution { public List< ...
分类:
其他好文 时间:
2020-01-23 11:01:57
阅读次数:
57