当前位置:网站首页>Summary of one question per day: linked list (continuously updated)
Summary of one question per day: linked list (continuously updated)
2022-07-02 08:08:00 【Villanelle#】
3. Longest substring without repeating characters Medium The sliding window 、 Hash table 2021/11/10
Given a string s , Please find out that there are no duplicate characters in it Longest substrings The length of .
Example :
Input : s = “pwwkew”
Output : 3
Important thinking methods : The sliding window , Traversal string , The left end position defaults to 0, The right end also defaults to 0, Slide gradually from the right end to the right .
class Solution {
public:
// Right end - Left side +1 Is the length of the string , The elements in the hash table are split strings
// If you don't encounter characters in the hash table , Then add to the hash table and continue to move right
// If you encounter characters in the hash table , Delete the original characters and slide the left end to the right , Until it's time to
边栏推荐
- Principes fondamentaux de la théorie musicale (brève introduction)
- Eklavya -- infer the parameters of functions in binary files using neural network
- Prompt 范式简述
- 我的vim配置文件
- 最长等比子序列
- Get the width and height of the screen in real time (adaptive)
- Carsim-路面3D形状文件参数介绍
- Feature Engineering: summary of common feature transformation methods
- The internal network of the server can be accessed, but the external network cannot be accessed
- Jetson nano installation tensorflow stepping pit record (scipy1.4.1)
猜你喜欢
随机推荐
My VIM profile
Network metering - transport layer
Simply test the two different data transmission methods of content length and chunked
Gensim如何冻结某些词向量进行增量训练
[C # note] the data in DataGridView saved in WinForm is excel and CSV
用全连接层替代掉卷积 -- RepMLP
w10升级至W11系统,黑屏但鼠标与桌面快捷方式能用,如何解决
乐理基础(简述)
Longest isometric subsequence
Array and string processing, common status codes, differences between PHP and JS (JS)
服务器的内网可以访问,外网却不能访问的问题
Open3d learning note 5 [rgbd fusion]
Using transformer for object detection and semantic segmentation
【MagNet】《Progressive Semantic Segmentation》
Vscode下中文乱码问题
针对语义分割的真实世界的对抗样本攻击
Specification for package drawing
【学习笔记】反向误差传播之数值微分
Open3d learning notes II [file reading and writing]
Hystrix dashboard cannot find hystrix Stream solution