• 點部落
  • 首頁
  • RSS
    • 登入

Lucy's Note of Coding

I write them here shows what I have been learning.

2022-08-19 置頂文章

[JAVA]窮舉法(暴力法) Exhaustive Algorithm

  • 670
  • 0
  • algorithm

關於字符串的匹配問題;主字符串1 —> str1 = "xxxxI write themxxxxxxxx I write them here shows what I have been learning." ;
字符串2 —> str2= "I write them here shows what I have been learning.";
若字符串1包含字符串2,則返回開始出現的位置;否則返回-1;

參考來源:https://blog.csdn.net/MrTumnus/article/details/121679134

...繼續閱讀 »
  • exhaustive algorithm
  • 1
  • 服務規範
  • 聯絡我們
© 2025 點部落 Ver. 1.0.0.0
電魔小鋪有限公司 製作、維運;登豐數位科技 提供資安檢測