YuAn


  • 首頁

  • 目錄

  • 分類

  • 標籤

  • 關於我

  • 檢索

28. Implement strStr()

發表於 2023-02-13 | 分類於 leetcode

problem

solution

option 1

1

option 2 - KMP

option 3 - Sunday 匹配

analysis

  • option 1
    • time complexity O(nm)
    • space complexity O(1)
  • option 2
    • time complexity
    • space
# Two Pointers
290. Word Pattern
289. Game of Life
  • 文章目錄
  • 本站概覽

642 文章
20 分類
53 標籤
GitHub E-Mail FB Page Instagram
近期文章
  • 1750. Minimum Length of String After Deleting Similar Ends
  • 948. Bag of Tokens
  • 2864. Maximum Odd Binary Number
  • 2570. Merge Two 2D Arrays by Summing Values
  • 1074. Number of Submatrices That Sum to Target
  1. 1. problem
  2. 2. solution
    1. 2.0.1. option 1
    2. 2.0.2. option 2 - KMP
    3. 2.0.3. option 3 - Sunday 匹配
  • 3. analysis
  • © 2022 — 2024 YU-AN, Chen
    由 Hexo 強力驅動
    |
    主題 — NexT.Mist v5.1.4