题目描述 leetcode - 19:https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list/ 解题关键 链表 碎碎念 中等题因为要求是 一次 循环。所以用两个TreeNode节点tmp和ntmp,ntmp = tmp - ...
分类:
其他好文 时间:
2020-06-19 01:13:10
阅读次数:
59
css selector 优点:通过样式定位,速度快 缺点:支持selenium但不支持appium--xpath可用 selenium定位语法$('') 示例如下: $('#s_tab>a:nth-child(2)')name 或id定位子元素 $('#s_tab a:nth-child(2)') ...
分类:
Web程序 时间:
2020-06-18 13:08:49
阅读次数:
82
总结 .demo xxx:nth-child(n){...}表示.demo元素下的第n个元素(从1开始),并且当数到的这个元素的标签和xxx标签一模一样,这个样式才会生效 注意:如果.demo没有,表示没有写父元素,其实也就是自己要找出xxx的上一级元素,将其作为xxx的父元素。那么最外层的父元素就 ...
分类:
其他好文 时间:
2020-06-18 13:06:19
阅读次数:
59
p:nth-child(n) 定位p标签下的第一个元素,下标从1开始。 首先是一个标签下有多个相同的元素. 如index_service_cnt js_service_list下有多个class="index_service_cnt_itemWrap"的元素,此时需要定位其中一个 标签为a $('. ...
分类:
Web程序 时间:
2020-06-14 20:52:09
阅读次数:
90
链接:https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list/ 代码 /** * Definition for singly-linked list. * public class ListNode { * int val; ...
分类:
其他好文 时间:
2020-06-13 21:11:17
阅读次数:
66
例子1:获取 Employee 表中第二高的薪水(Salary),没有第二高的则返回null select ifnull((select distinct Salary from Employee order by Salary desc limit 1, 1), null) as SecondHi ...
分类:
数据库 时间:
2020-06-11 14:57:32
阅读次数:
65
1、instr()函数的格式 (俗称:字符查找函数) 格式一:instr( string1, string2 ) // instr(源字符串, 目标字符串) 格式二:instr( string1, string2 [, start_position [, nth_appearance ] ] ) / ...
分类:
数据库 时间:
2020-06-10 21:15:21
阅读次数:
70
176. 第二高的薪水 (limit, order by, ifnull) limit的用法: limit y : 读取 y 条数据 limit x, y : 跳过 x 条数据,读取 y 条数据 limit y offset x : 跳过 x 条数据,读取 y 条数据 按照salary 从大到小排序 ...
分类:
数据库 时间:
2020-06-03 17:21:34
阅读次数:
93
NVIDIA安倍架构 NVIDIA Ampere ArchitectureNVIDIA The Heart of the World’s Highest-Performing, Elastic Data Centers 一.现代数据中心中AI和HPC的核心 科学家、研究人员和工程师我们这个时代的达芬 ...
分类:
其他好文 时间:
2020-06-03 15:31:39
阅读次数:
110
一、选择列表中的偶数标签 :nth-child(2n) 二、选择列表中的奇数标签 :nth-child(2n-1) 三、选择从第6个开始的,直到最后:nth-child(n+6) 四、选择第1个到第6个 :nth-child(-n+6) 一、两者结合使用,可以限制选择某一个范围,选择第6个到第9个 ...
分类:
Web程序 时间:
2020-06-02 13:08:01
阅读次数:
2837