Leetcode 1961. Check If String Is a Prefix of Array
Check whether the string s can be exactly formed by concatenating the first k (1 ≤ k ≤ words.length) strings in words; return true if some prefix-concatenation equals s, otherwise false.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.