leetcode
leetcode copied to clipboard
Create 0028-find-the-index-of-the-first-occurence-in-a-string
- File(s) Modified: 0028-find-the-index-of-the-first-occurrence-in-a-string.java
- Language(s) Used: java
- Submission URL: https://leetcode.com/problems/find-the-index-of-the-first-occurrence-in-a-string/submissions/910556174/
Important
Please make sure the file name is lowercase and a duplicate file does not already exist before merging.
Hi! A file with a solution for this already exists, but your solution differs so we could add it too, to the file.
Could you edit the existing file and add your solution to it, and I can merge it.
You can separate the solutions like this:
// Solution ONE (you can write the type of yuor solution like "brute-force", "KMP", "Hashing" etc)
class Solution {
public int strStr(String haystack, String needle) {
//...
}
}
// Solution TWO
class Solution {
public int strStr(String haystack, String needle) {
//...
}
}
Hi! A file with a solution for this already exists, but your solution differs so we could add it too, to the file.
Could you edit the existing file and add your solution to it, and I can merge it.
You can separate the solutions like this:
// Solution ONE (you can write the type of yuor solution like "brute-force", "KMP", "Hashing" etc) class Solution { public int strStr(String haystack, String needle) { //... } } // Solution TWO class Solution { public int strStr(String haystack, String needle) { //... } }
Sorry for the delay on this, I have been traveling. I updated the PR based on your recommendation. Please let me know if there's anything else that needs to be done
@a93a sorry to bother you, but have you had a chance to review the changes applied?
@benmak11 my apologies for the very late reply, I must somehow missed your update, sorry for that. But it looks good, thanks for your contribution.