Given a string s, find the length of the longest substring without repeating characters. Input: s = "abcabcbb"Output: 3Explanation: The answer is "abc ...
分类:
其他好文 时间:
2020-11-08 17:44:10
阅读次数:
26
1.2.2 实例化容器(container) 为ApplicationContext 构造器提供的一个或多个路径使得容器能够从这些资源字符串中加载配置元数据从多样的外部资源位置。比如本地文件系统,类路径等。 ApplicationContext context = new ClassPathXmlA ...
分类:
编程语言 时间:
2020-11-07 16:19:28
阅读次数:
22
wget用法 wget --bind-address='55.200.1.1' http://22.3.32.100 --output-document=/dev/null ...
分类:
其他好文 时间:
2020-11-04 17:54:23
阅读次数:
17
E Nothing is eternal in the world, Kostya understood it on the 7-th of January when he saw partially dead four-color garland. Now he has a goal to rep ...
分类:
其他好文 时间:
2020-11-02 10:34:31
阅读次数:
23
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" an ...
分类:
移动开发 时间:
2020-11-02 10:06:11
阅读次数:
34
CopyOnWriteArrayList官方定义CopyOnWriteArrayList是ArrayList的线程安全变体,其中通过创建底层数组的新副本来实现所有可变操作(添加,设置等)。这通常成本太高,但是当遍历操作大大超过突变时,它可能比替代方法更有效,并且当您不能或不想同步遍历但需要排除并发线程之间的干扰时非常有用。“快照”样式迭代器方法在创建迭代器时使用对数组状态的引用。这个数组在迭代器的
分类:
其他好文 时间:
2020-11-01 11:03:49
阅读次数:
17
写在前面 前段时间搭建了一套MySQL分布式数据库集群,数据库节点有12个,用来测试各种分布式事务方案的性能和优缺点。测试MySQL XA事务时,正当测试脚本向数据库中批量插入数据时,强制服务器断电!注意:是直接拔电源,使其瞬间断电,再次重启服务器后,MySQL数据库报错了。特此记录MySQL XA ...
分类:
数据库 时间:
2020-11-01 10:37:26
阅读次数:
25
C. Friends and Gifts time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output There are nn friend ...
分类:
其他好文 时间:
2020-11-01 10:31:24
阅读次数:
17
10. 正则表达式匹配 给你一个字符串 s 和一个字符规律 p,请你来实现一个支持 '.' 和 '*' 的正则表达式匹配。 '.' 匹配任意单个字符 '*' 匹配零个或多个前面的那一个元素 所谓匹配,是要涵盖 整个 字符串 s的,而不是部分字符串。 示例 1: 输入:s = "aa" p = "a" ...
分类:
编程语言 时间:
2020-10-30 13:14:52
阅读次数:
31
use 3D version to calculate how much water the model can contain this problem need use dfs,from the edge part which mustn't be answer,for the edge can ...
分类:
移动开发 时间:
2020-10-29 10:06:29
阅读次数:
25