0003.longest-substring-without-repeating-characters

command
v0.0.0-...-88eb295 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

README

3. Longest Substring Without Repeating Characters

idx記錄字元有沒有出現過,如果有,出現過最右邊的位置在哪。 lefti夾成了一個窗口,確認現在這個字元過去出現的位置有沒有在窗口內,如果有將窗口長度縮短。

隨便寫寫居然過了sample...submit再根據一些測資寫特判,多丟了兩次就過了... 當然,第一次AC的code沒這麼漂亮

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL