Skip to content

Commit 8109828

Browse files
committed
Add implement str
1 parent dc6e0d3 commit 8109828

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Easy/implement-strstr.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Code
2+
====
3+
4+
```go
5+
func strStr(haystack string, needle string) int {
6+
return strings.Index(haystack, needle)
7+
}
8+
```

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ My collection of leet code problems solved in GoLang!
55

66
| [Easy](#easy) | [Medium](#medium) | [Hard](#hard) |
77
|---------------|-------------------|---------------|
8-
| 33 | 51 | 10 |
8+
| 34 | 51 | 10 |
99

1010
Problems finished
1111
=================
@@ -79,6 +79,8 @@ Easy
7979

8080
- [valid-mountain-array](Easy/valid-mountain-array.md)
8181

82+
- [implement-strstr](Easy/implement-strstr.md)
83+
8284
Medium
8385
------
8486

0 commit comments

Comments
 (0)