【Leetcode】1023. Camelcase Matching

題目地址: https://leetcode.com/problems/camelcase-matching/html 給定一個字符串數組,再給定一個字符串 p p p,問數組裏哪些字符串能夠由 p p p只添加小寫字母獲得。以boolean列表的形式返回答案。java 思路是雙指針。對於字符串 s s s能夠這麼考慮: 先開兩個指針 i i i和 j j j分別從 s s s和 p p p的開頭
相關文章
相關標籤/搜索