B - Lucky Mask Petya loves lucky numbers very much. Everybody knows that lucky numbers are positive integers whose decimal record contains only the lu ...
分类:
其他好文 时间:
2020-12-25 12:22:13
阅读次数:
0
public static void main(String[] args) { // 构建一个集合 List list = new ArrayList(); list.add("abc123"); list.add("aaa22"); list.add("bcd125"); list.add("a ...
分类:
其他好文 时间:
2020-12-24 12:05:11
阅读次数:
0
一:设置变量log_bin_trust_function_creators的方式 -- 设置为1,此时才可以使用 CONTAINS SQL,MODIFIES SQL DATA set GLOBAL log_bin_trust_function_creators=1; delimiter $$ cre ...
分类:
其他好文 时间:
2020-12-23 12:26:09
阅读次数:
0
1. len 字符串长度 len(str1) 2. 字符串遍历(感觉是将字符串当做列表看,待验证) r = []rune(str1) 3. 字符串转整数(不知道有什么用) strconv.Atoi(str1) 4. 整数转字符串 strconv.Itoa(int1) 5. 字符串转byte 6. b ...
分类:
其他好文 时间:
2020-12-21 11:26:01
阅读次数:
0
class Solution { public boolean containsNearbyAlmostDuplicate(int[] nums, int k, int t) { /** * 本题与219题仅在判断部分有改动 * 时间复杂度O(nlogn) 空间复杂度O(k) */ TreeSet< ...
分类:
其他好文 时间:
2020-12-18 12:10:35
阅读次数:
4
Given an array of integers, find out whether there are two distinct indices i and j in the array such that the absolute difference between nums[i] and ...
分类:
编程语言 时间:
2020-12-10 11:13:48
阅读次数:
6
删除DataFrame指定列有空值的行 1. `mydf.dropna(subset=['col1', 'col2'], inplace = True)` 2. ``` mydf = pd.DataFrame({ 'name' : ['Tom','Amy','John','George'], 'se ...
分类:
其他好文 时间:
2020-12-09 12:04:52
阅读次数:
4
Furion框架亮点之-动态WebAPI 最近研究小僧的.Net5框架Furion,其中不乏让人眼前一亮的新鲜玩意儿。于是想把一些亮点记录并作分享。 相关地址 项目 文档 动态WebAPI简述(摘自文档) 动态WebAPI是Furion框架创造出一种更加灵活创建WebAPI控制器的方式,它对ASP. ...
此博客连接:https://www.cnblogs.com/ping2yingshi/p/14054440.html 存在重复元素2 题目链接:https://leetcode-cn.com/problems/contains-duplicate-ii/submissions/ 题目 给定一个整数数 ...
分类:
其他好文 时间:
2020-12-03 11:48:40
阅读次数:
2
非商业,LeetCode链接附上: https://leetcode-cn.com/problems/remove-duplicate-node-lcci/ 进入正题。 题目: 编写代码,移除未排序链表中的重复节点。保留最开始出现的节点。 示例: 示例1: 输入:[1, 2, 3, 3, 2, 1] ...
分类:
其他好文 时间:
2020-12-01 12:35:57
阅读次数:
10