leetcode icon indicating copy to clipboard operation
leetcode copied to clipboard

Create 0028-find-the-index-of-the-first-occurence-in-a-string

Open benmak11 opened this issue 1 year ago • 1 comments

  • 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.

benmak11 avatar Mar 07 '23 03:03 benmak11

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) {
        //...
    }
}

a93a avatar May 06 '23 12:05 a93a

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

benmak11 avatar Jun 30 '23 18:06 benmak11

@a93a sorry to bother you, but have you had a chance to review the changes applied?

benmak11 avatar Aug 08 '23 03:08 benmak11

@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.

a93a avatar Aug 27 '23 08:08 a93a