直接遍历链表,使用set做标记位(标记是否已经到达过) /** * Definition for singly-linked list. * type ListNode struct { * Val int * Next *ListNode * } */ type void struct{} fun ...
分类:
其他好文 时间:
2021-04-10 12:49:23
阅读次数:
0
转自于:https://www.cnblogs.com/benmumu/p/8316652.html // 全图默认背景 // backgroundColor: ‘rgba(0,0,0,0)’, // 默认色板 color: ['#ff7f50','#87cefa','#da70d6','#32cd ...
分类:
其他好文 时间:
2021-04-09 13:36:59
阅读次数:
0
mysql 系统提供了很多的函数 count:统计个数,次数,null不统计 max:最大值 min:最小值 sum求和 avg平均值 round:四舍五入 ...
分类:
数据库 时间:
2021-04-09 13:30:01
阅读次数:
0
本文简单记录一下关于Queue接口中几种类似方法的区别: add() 和 offer() add() : 添加元素,如果添加成功则返回true,如果队列是满的,则抛出异常 offer() : 添加元素,如果添加成功则返回true,如果队列是满的,则返回false 区别:对于一些有容量限制的队列,当队 ...
分类:
编程语言 时间:
2021-04-09 12:57:32
阅读次数:
0
public static Object copyOf(Object a,int newLength){ Class cl = a.getClass(); if(!cl.isArray()){ return null; } Class componentType = cl.getComponentT ...
分类:
编程语言 时间:
2021-04-08 12:57:40
阅读次数:
0
mysql字符串拼接 1.CONCAT() 遇到拼接中的字符串出现null的情况会返回null 2.CONCAT_WS() 如果某个字符串为null,会忽略null,并返回其他字符串的值 显然,用CONCAT_WS更好一点 ...
分类:
数据库 时间:
2021-04-07 11:17:47
阅读次数:
0
var func:Function = Math.max; trace(func.apply(null,[4,5,6,7,8,9])); https://blog.csdn.net/wsxiaodong/article/details/83762138 ...
分类:
编程语言 时间:
2021-04-06 15:00:14
阅读次数:
0
前提 SQL执行计划仍在Shared Pool中 函数体 DBMS_XPLAN.DISPLAY_CURSOR( sql_id IN VARCHAR2 DEFAULT NULL, child_number IN NUMBER DEFAULT NULL, format IN VARCHAR2 DEFAU ...
分类:
数据库 时间:
2021-04-06 14:33:43
阅读次数:
0
class MyPromise { constructor(executor) { this.state = 'pending'; this.value = null; try { executor(this.resolve.bind(this),this.reject.bind(this)); } ...
分类:
其他好文 时间:
2021-04-06 14:22:04
阅读次数:
0
█ 0.代码函数: ○ 0.1 边界 Integer.MAX_VALUE int[] preorder ==> preorder == null || preorder.length == 0 char[][] board ==> board == null int[][] matrix ==> ( ...
分类:
其他好文 时间:
2021-04-06 14:10:55
阅读次数:
0