自从JavaAPI&RegExp用熟练了之后就变得越来越任性越来越懒了):

 

public class Solution {
    public int strStr(String haystack, String needle) {
        return haystack.indexOf(needle);
    }
}

 

相关文章:

  • 2021-08-21
  • 2022-02-10
  • 2022-01-23
  • 2021-10-26
  • 2022-12-23
猜你喜欢
  • 2021-06-10
  • 2021-08-06
  • 2021-12-16
  • 2021-07-18
  • 2021-06-28
  • 2022-01-15
相关资源
相似解决方案