题目描述 Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the definition of LCA on Wikipedia: “The ...
分类:
其他好文 时间:
2020-04-23 00:51:39
阅读次数:
73
安装composer.进入nginx主目录cd/Applications/MAMP/htdocs/设置国内镜像,执行composerconfig-grepo.packagistcomposerhttps://packagist.phpcomposer.com下载laravel,composerglobalrequire"laravel/installer新建laravel项目compos
分类:
其他好文 时间:
2020-04-23 00:21:28
阅读次数:
115
1 class Twitter 2 { 3 public: 4 unordered_map<int,priority_queue<pair<int,int>,vector<pair<int,int>>,greater<pair<int,int>>>> u;//用户 -> (出现的次数,推文) 小根堆 ...
分类:
其他好文 时间:
2020-04-22 23:00:19
阅读次数:
114
Leetcode 560 Subarry Sum Equals K Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equ ...
分类:
其他好文 时间:
2020-04-22 20:19:06
阅读次数:
65
索引器&集合配合使用,实现使用[]获取数据的目的 示例代码 "IndexerAndCollection" ...
分类:
其他好文 时间:
2020-04-22 20:15:04
阅读次数:
68
转自:https://www.cnblogs.com/xiaoxiaolvdou/p/9316805.html selenium切换到iframe 定位iframe1.有id,并且唯一,直接写iddriver.switch_to_frame("x-URS-iframe")driver.switch_ ...
分类:
Web程序 时间:
2020-04-22 20:00:03
阅读次数:
73
在UI层面的自动化测试开发中,元素的定位与操作是基础,也是经常遇到的困难所在。webdriver提供了8种定位: 1. id定位:find_element_by_id("id值");id属性是唯一的 1 driver.find_element_by_id("loginName").clear()#用 ...
分类:
Web程序 时间:
2020-04-22 10:04:33
阅读次数:
75
Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string "". Exampl ...
分类:
其他好文 时间:
2020-04-21 22:26:53
阅读次数:
82
CentOS目录树详细解释 [sdm_download id=”292″ fancy=”1″] /boot 该目录默认下存放的是Linux的启动文件和内核。 initramfs-* 系统启动时的模块供应的主要来源 启动系统所需加载的虚拟磁盘 System.map-* System.map文件是一个索 ...
分类:
其他好文 时间:
2020-04-21 15:33:57
阅读次数:
72