Skip to content

Commit 6af0664

Browse files
Resovled error
1 parent a426d73 commit 6af0664

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

dsa-solutions/lc-solutions/0000-0099/0028-find-first-occurrence-in-string.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ Given two strings `needle` and `haystack`, return the index of the first occurre
3939

4040
### Constraints
4141

42-
- 1 <= `haystack.length`, `needle.length` <= 10^4
43-
- `haystack` and `needle` consist of only lowercase English characters.
42+
- `1 <= haystack.length , needle.length <= 10^4 `
43+
- haystack and needle consist of only lowercase English characters.
4444

4545
### Approach
4646

@@ -68,8 +68,6 @@ class Solution(object):
6868
if haystack[i:i + len(needle)] == needle:
6969
return i
7070
return -1
71-
72-
7371
```
7472

7573
#### Java

0 commit comments

Comments
 (0)