Count Instances

This solution uses the javascript functions Map and Filter to easily find and count the occurance of the given word array.

Computed Results Strings to Find Expected Results
2,2,0,2,0 peter,a,pepper,piper,The 2,2,0,2,0
2,2,2,3,1,0 but,Botter,bit,butter,I,and 2,2,2,3,1,0
4,5,3,3,0,3,4,4 as,chuck,could,He,dude,much,Woodchuck,wood 4,5,3,3,0,3,4,4
2,4,0,2,0,1 where,she,but,shines,though,sits 2,4,0,2,0,1
1,0,3,0,0,2 Unique,pork,york,knew,cork,know 1,0,3,0,0,2

© 2022 - Over Engineered by Carlo I Macasaet for crimsontechnik.com

Facebook Instagram Twitter GitHub Dribbble