给定一个字符串,请你找出其中不含有重复字符的?最长子串?的长度。 示例?1: 输入: s = "abcabcbb" 输出: 3 解释: 因为无重复字符的最长子串是 "abc",所以其长度为 3。 示例 2: 输入: s = "bbbbb" 输出: 1 解释: 因为无重复字符的最长子串是 "b",所以 ...
分类:
其他好文 时间:
2021-01-08 11:34:55
阅读次数:
0
A. Cards for Friends time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output For the New Year, Po ...
分类:
其他好文 时间:
2021-01-08 11:28:07
阅读次数:
0
AlterDialog:确认取消警告提示框 public void showAlertDialog(View view){ AlertDialog.Builder dialog = new AlertDialog.Builder(MainActivity.this); dialog.setTitle ...
分类:
移动开发 时间:
2021-01-08 11:26:55
阅读次数:
0
终于到了shared ptr 首先看一下std::make_shared 可能有人不知道stdpair是什么,接下来的例子是和stdpair有关系的, first和second是第一个成员和第二个成员,然后我们可以发现,第一个first和第二个second竟然可以不一样 // make_pair e ...
分类:
其他好文 时间:
2021-01-08 11:22:07
阅读次数:
0
运用你所掌握的数据结构,设计和实现一个 LRU (最近最少使用) 缓存机制 。 实现 LRUCache 类: LRUCache(int capacity) 以正整数作为容量?capacity 初始化 LRU 缓存 int get(int key) 如果关键字 key 存在于缓存中,则返回关键字的值, ...
分类:
其他好文 时间:
2021-01-08 11:17:57
阅读次数:
0
本篇文章主要介绍SpringBoot 配置相关内容。如果文章中有错误或不明确的地方,请大家望指正,谢谢! https://docs.spring.io/spring-boot/docs/2.3.7.RELEASE/reference/html/spring-boot-features.html#bo ...
分类:
编程语言 时间:
2021-01-08 10:51:04
阅读次数:
0
Stream stream = HttpContext.Request.Body; byte[] buffer = new byte[HttpContext.Request.ContentLength.Value]; await stream.ReadAsync(buffer, 0, buffer. ...
分类:
其他好文 时间:
2021-01-08 10:49:35
阅读次数:
0
select a.newname,count(b.id) from TableA a left join Tableb b on a.id = b.Tablea_id group by a.new_name TableA的主键是id Tableb的主键是id,关联A表的是Tablea_id字段 , ...
分类:
其他好文 时间:
2021-01-08 10:47:18
阅读次数:
0
手工解析域名:nslookup 域名Ping命令一般默认4个包Ping ipPing -n加数字加ip (发送几个包)Ping -t ip 一直pingPing -l 数字 ip 修改了包的大小Ipconfig查看ip基本信息 Ipconfig/all 查看ip详细信息 Dos attrib 可以对 ...
分类:
其他好文 时间:
2021-01-08 10:41:07
阅读次数:
0
static void Main(string[] args) { IServiceProvider serviceProvider = new ServiceCollection().BuildServiceProvider(); Debug.Assert(object.ReferenceEqua ...
分类:
其他好文 时间:
2021-01-08 10:33:13
阅读次数:
0