This is a verified interview question from Hackerrank. Candidates reporting seeing this problem in recent Online Assessments (OAs) and onsite rounds. Mastering "Username Strength Checker - HackerRank Forward Deployed Engineer" covers key patterns like Strings.
"You are given: - An array usernames containing n usernames - An array commonWords containing m dictionary words A username is classified as "weak" if any of the following conditions holds: - The username exactly matches a word in commonWords - Any substring of the username matches a word in commonWords - The username contains only digits (0–9) - The username consists entirely of lowercase letters - The username consists entirely of uppercase letters - The username has length less than 6 If none of the above conditions apply, the username is classified as "strong". For each username, determine whether it is "weak" or "strong" and return the results in order as an array."
Join thousands of developers practicing for Hackerrank.