Find A Word

Given two inputs both comma delimitated - input 1 is a list of words, input two represents a list of

ascii values for letters. Find how many of those words can be constructed by the values of the letters given in input 2.


arg1: cat,dog
arg2: 116,100,97,99,103,111
Expected: 2


arg1: mouse,horse,dog,cat
arg2: 115,111,101,116,99,117,104,97,114,109
Expected: 3


arg1: EngineerMan,Bones,Brtwrst,HexF
arg2: 110,97,105,103,110,69,110,116,114,116,77,101,114,115,101,66,119
Expected: 2
Test Cases
Test Case 1
Argument 1 cat,dog
Argument 2 116,100,97,99,103,111
Expected Output 2
Test Case 2
Argument 1 mouse,horse,dog,cat
Argument 2 115,111,101,116,99,117,104,97,114,109
Expected Output 3
Test Case 3
Argument 1 EngineerMan,Bones,Brtwrst,HexF
Argument 2 110,97,105,103,110,69,110,116,114,116,77,101,114,115,101,66,119
Expected Output 2
Test Case 4
Argument 1 cat,dog,horse,JoKing,zebra,emkc,rabbit,hashme,Lyndon
Argument 2 110,105,74,109,116,110,103,110,121,100,99,97,104,115,109,104,114,104,101,114,103,97,111,107,76,101,100,97,116,111,75,99,101,98,111,115,111,98,105
Expected Output 8
Your Submission
You are not logged in. To submit a solution, click the Login button at the top right.
Submissions

Login/Register

At the moment only Discord login is supported.

Login with Discord