Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb"Output: 3 Explanation: The answer i ...
分类:
其他好文 时间:
2019-12-30 09:34:59
阅读次数:
59
原题链接在这里:https://leetcode.com/problems/fibonacci-number/ 题目: The Fibonacci numbers, commonly denoted F(n) form a sequence, called the Fibonacci sequenc ...
分类:
其他好文 时间:
2019-12-30 09:22:36
阅读次数:
75
1. 查 1.1 行元素查询操作 像SQL那样打印列表前20元素,show函数内可用int类型指定要打印的行数: df.show() df.show(30) 以树的形式打印概要: df.printSchema() 获取头几行到本地: list = df.head(3) # Example: [Row ...
分类:
其他好文 时间:
2019-12-29 18:39:19
阅读次数:
73
Oracle表操作 主键,复合主键 create table example (id number primary key, name varchar2(20)); create table example1 (id number, name varchar2(20),primary key(id) ...
分类:
数据库 时间:
2019-12-29 16:50:24
阅读次数:
85
相信大多数人都用过GitHub,那么接下来我为大家分享几种可以高效搜索GitHub仓库的方式: 首先 GitHub中一个仓库一般构成由:author/repName ,项目简介,readme部分构成; 搜索条件可以根据不同部分进行搜索: 1. in:name example 对应仓库名称中含有 'e ...
分类:
其他好文 时间:
2019-12-29 15:18:24
阅读次数:
61
#java#reactor#flux#buffer# 缓冲 视频讲解: https://www.bilibili.com/video/av81107026/ FluxMonoTestCase.java package com.example.reactor; import lombok.extern ...
分类:
其他好文 时间:
2019-12-29 14:35:06
阅读次数:
76
Reverse a singly linked list. Example: Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL Follow up: A linked list can be reversed either iterativ ...
分类:
其他好文 时间:
2019-12-29 12:44:23
阅读次数:
52
package com.example.demo.utils;import java.lang.reflect.Field;import java.util.concurrent.*;public class Test1 { static ThreadLocal threadLocal = new ...
分类:
编程语言 时间:
2019-12-29 11:07:00
阅读次数:
116
Unsafe类提供了原子性操作CAS package com.example.demo.utils;import com.alibaba.druid.pool.DruidDataSource;import sun.misc.Unsafe;import java.lang.reflect.Field; ...
分类:
编程语言 时间:
2019-12-29 10:53:07
阅读次数:
92
题目如下: Given a binary tree, return the sum of values of its deepest leaves. Example 1: Constraints: The number of nodes in the tree is between 1 and 10 ...
分类:
其他好文 时间:
2019-12-29 10:38:07
阅读次数:
72