最长无重复字符的子串。 题意是给一个input字符串,请输出其最长的,没有重复字符的substring。这是two pointer/sliding window的基础题。例子 Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer ...
分类:
其他好文 时间:
2020-01-14 09:18:01
阅读次数:
72
Shuffle a set of numbers without duplicates. Example: // Init an array with set 1, 2, and 3. int[] nums = {1,2,3}; Solution solution = new Solution(nu ...
分类:
其他好文 时间:
2020-01-12 10:10:14
阅读次数:
101
论文题目:The Reversible Residual Network:Backpropagation Without Storing Activations 一、背景介绍 二、神经网络的反向传播(BP) 符号表示: X1,X2,X3:表示3个输入层节点 Wtji:表示从t-1层到t层的权重参数, ...
分类:
Web程序 时间:
2020-01-11 23:49:16
阅读次数:
457
https://people.cs.umass.edu/~moss/papers/jgrande-2001-sapphire.pdf Many concurrent garbage collection (GC) algorithms have been devised, but few have ...
分类:
移动开发 时间:
2020-01-11 15:04:54
阅读次数:
84
1.暴力法: 本题让求给定字符串的最长的无重复字符的子串,首先想到暴力解法,穷举出字符串的所有子串,并判断每个子串是否是不重复子串,具体使用hashset或set判是否有重复字符;暴力法效率很差,时间O(n^3),空间O(n);参考代码如下: 1 class Solution { 2 public: ...
分类:
其他好文 时间:
2020-01-07 13:27:01
阅读次数:
84
Vue Loader v15 现在需要配合一个 webpack 插件才能正确使用 // webpack.config.js const VueLoaderPlugin = require('vue-loader/lib/plugin') module.exports = { // ... plugi ...
分类:
其他好文 时间:
2020-01-06 14:53:49
阅读次数:
64
背景 + 刚从B站上看过倒放挑战之后也想体验下,心血来潮一个晚上完成了基本的实现。其中倒放与播放部分使用了pydub这个音频库,十分快捷方便,但是它完整一套的配置让我还是踩了几个坑。特将其配置过程记录于此,方便大家。 + 系统 + " " 安装 + :打开 ,`activate pip instal ...
分类:
编程语言 时间:
2020-01-05 00:01:26
阅读次数:
477
496. Next Greater Element I Easy Easy Easy You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2. F ...
分类:
其他好文 时间:
2019-12-30 09:36:29
阅读次数:
60
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
报错提示: Sat Oct 21 09:28:33 CST 2019 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5 ...
分类:
数据库 时间:
2019-12-29 14:45:21
阅读次数:
91