package _interview_question /** * Check if a given array contains duplicate elements within k distance from each other. * Given an unsorted array that ...
分类:
其他好文 时间:
2020-07-17 01:23:35
阅读次数:
107
Description A wqb-number, or B-number for short, is a non-negative integer whose decimal form contains the sub- string "13" and can be divided by 13. ...
分类:
其他好文 时间:
2020-07-15 23:20:22
阅读次数:
96
1 判断集合元素唯一的原理 1.1 ArrayList的contains方法判断元素是否重复原理 ArrayList的contains方法会使用调用方法时,传入的元素的equals方法依次与集合中的旧元素所比较,从而根据返回的布尔值判断是否有重复元素。此时,当ArrayList存放自定义类型时,由于 ...
分类:
编程语言 时间:
2020-07-15 22:50:31
阅读次数:
68
前言:近期在研究elasticsearch,开发语言c#,一个“简单”的功能研究了一天,好费神(可能第一次使用es的原因)。这个功能就是:c#语言中String的Contains功能。 例如:文本内容是:4G时代,网络标准有FDD、TDD之分 1.搜索“有FDD”,可以搜索出来; 2.搜索“有FDD ...
分类:
其他好文 时间:
2020-07-15 15:07:57
阅读次数:
98
Given a string S of lowercase letters, a duplicate removal consists of choosing two adjacent and equal letters, and removing them. We repeatedly make ...
分类:
其他好文 时间:
2020-07-15 13:09:25
阅读次数:
90
判断点击的元素的外层元素是否有我们想要的目标元素,如果有就执行自己相应的逻辑 function clickEvent(event) { const target = 'className'; if (!(event.target.classList.contains(target) || eleme ...
分类:
其他好文 时间:
2020-07-14 16:39:46
阅读次数:
65
package LeetCode_166 /** * 166. Fraction to Recurring Decimal * https://leetcode.com/problems/fraction-to-recurring-decimal/description/ * * Given two ...
分类:
其他好文 时间:
2020-07-14 00:36:05
阅读次数:
87
集合类 他们都在 java.util包里 Iterator(迭代器) Collection List (有序可重复) ArrayList(常用) add remove contains size LinkedList(常用) getFirst() getLast() removeFirst() ad ...
分类:
编程语言 时间:
2020-07-13 21:43:45
阅读次数:
78
服务的访问控制列表 [root@localhost ~]# cat /etc/hosts.allow # # hosts.allow This file contains access rules which are used to # allow or deny connections to ne ...
分类:
系统相关 时间:
2020-07-13 18:06:16
阅读次数:
71
18C中, rman可以很简单的把CDB中PDB复制到另外一个CDB,仅用一条命令RMAN> connect target *connected to target database: CDB181 (DBID=3282107738) RMAN> connect auxiliary *connect ...
分类:
数据库 时间:
2020-07-13 15:17:21
阅读次数:
80