Count the Number of Consistent Strings at Robinhood

Easy88.5% acceptance

This problem has 87.5% frequency at Robinhood.

Problem Description

You are given a string `allowed` consisting of **distinct** characters and an array of strings `words`. A string is **consistent** if all characters in the string appear in the string `allowed`. Return _the number of**consistent** strings in the array _`words`.

Read full problem and hints

Topics

Also asked at 2 companies


More Robinhood Questions

View all Robinhood questions