Search
⌘K

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.

Comments

Your account is free and you can post anonymously if you choose.