One line C# accepted


  • -1
    T

    public class Solution {
    public int StrStr(string haystack, string needle) {
    return haystack.IndexOf(needle);
    }
    }


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.