LeetCode: Check If String Is a Prefix of Array
Problem:
https://leetcode.com/problems/check-if-string-is-a-prefix-of-array/description/
Code:
class Solution:
def isPrefixString(self, s: str, words: List[str]) -> bool:
index=0
for word in words:
if not s.startswith(...
is-power-of-two.hashnode.dev2 min read