Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a841704

Browse files
commit go solution
1 parent 677219a commit a841704

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ LeetCode
2929
|219|[Contains Duplicate II](https://leetcode-cn.com/problems/contains-duplicate-ii/) | [Java](https://github.com/xiao2shiqi/leetcode/blob/master/src/main/java/S219.java) | Easy
3030
|217|[Contains Duplicate](https://leetcode-cn.com/problems/contains-duplicate/) | [Java](https://github.com/xiao2shiqi/leetcode/blob/master/src/main/java/S217.java), [Ruby](https://github.com/xiao2shiqi/leetcode/blob/master/ruby/217.rb) | Easy
3131
|206|[Reverse Linked List ](https://leetcode-cn.com/problems/reverse-linked-list/) | [Java](https://github.com/xiao2shiqi/leetcode/blob/master/src/main/java/S206.java), [Ruby](https://github.com/xiao2shiqi/leetcode/blob/master/ruby/206.rb) | Easy
32-
|203|[Remove Linked List Elements](https://leetcode-cn.com/problems/remove-linked-list-elements/) | [Java](https://github.com/xiao2shiqi/leetcode/blob/master/src/main/java/S203.java) | Easy
32+
|203|[Remove Linked List Elements](https://leetcode-cn.com/problems/remove-linked-list-elements/) | [Java](https://github.com/xiao2shiqi/leetcode/blob/master/src/main/java/S203.java), [Go](https://github.com/xiao2shiqi/leetcode/blob/master/go/203.go) | Easy
3333
|172|[Factorial Trailing Zeroes](https://leetcode-cn.com/problems/factorial-trailing-zeroes/submissions/) | [Java](https://github.com/xiao2shiqi/leetcode/blob/master/src/main/java/S172.java), [Ruby](https://github.com/xiao2shiqi/leetcode/blob/master/ruby/172.rb) | Easy
3434
|167|[Two Sum II](https://leetcode-cn.com/problems/two-sum-ii-input-array-is-sorted/)| [Java](https://github.com/xiao2shiqi/leetcode/blob/master/src/main/java/S167.java) | Easy
3535
|160|[Intersection of Two Linked Lists](https://leetcode-cn.com/problems/intersection-of-two-linked-lists/)| [Java](https://github.com/xiao2shiqi/leetcode/blob/master/src/main/java/S160.java) | Easy
@@ -61,4 +61,5 @@ LeetCode
6161
|13|[Roman to Integer](https://leetcode-cn.com/problems/roman-to-integer/)| [Java](https://github.com/xiao2shiqi/leetcode/blob/master/src/main/java/S13.java), [Ruby](https://github.com/xiao2shiqi/leetcode/blob/master/ruby/13.rb) | Easy
6262
|9|[Palindrome Number](https://leetcode-cn.com/problems/palindrome-number/)| [Java](https://github.com/xiao2shiqi/leetcode/blob/master/src/main/java/S9.java), [Ruby](https://github.com/xiao2shiqi/leetcode/blob/master/ruby/9.rb), [Go](https://github.com/xiao2shiqi/leetcode/blob/master/go/9.go) | Easy
6363
|7|[Reverse Integer](https://leetcode-cn.com/problems/reverse-integer/)| [Java](https://github.com/xiao2shiqi/leetcode/blob/master/src/main/java/S7.java), [Ruby](https://github.com/xiao2shiqi/leetcode/blob/master/ruby/7.rb), [Go](https://github.com/xiao2shiqi/leetcode/blob/master/go/7.go) | Easy
64+
|3|[Longest Substring Without Repeating Characters](https://leetcode-cn.com/problems/longest-substring-without-repeating-characters/)| [Go](https://github.com/xiao2shiqi/leetcode/blob/master/go/3.go) | Middle
6465
|1|[Two Sum](https://leetcode-cn.com/problems/two-sum/)| [Java](https://github.com/xiao2shiqi/leetcode/blob/master/src/main/java/S1.java), [Ruby](https://github.com/xiao2shiqi/leetcode/blob/master/ruby/1.rb), [Go](https://github.com/xiao2shiqi/leetcode/blob/master/go/1.go) | Easy

‎go/3.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import "fmt"
44

55
/**
66
* LC#3:无重复字符的最长子串
7-
* Link:https://leetcode-cn.com/problems/longest-continuous-increasing-subsequence/
7+
* Link:https://leetcode-cn.com/problems/longest-substring-without-repeating-characters/
88
* 思路1:两层循环计数,从当前字符开始计算每个字符出现的最大序列,并且使用 ans 保存最长序列
99
*/
1010
func lengthOfLongestSubstring(s string) int {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /