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 hintsTopics
Also asked at 2 companies
More Robinhood Questions
Ways to Split Array Into Three SubarraysMediumRestore the Array From Adjacent PairsMediumNumber of Orders in the BacklogMediumCount Good MealsMediumCheck if There is a Valid Path in a GridMedium
View all Robinhood questions