Given a haystack and a needle array, create a hashmap of counts and determine whether the haystack contains all needles, handling missing or negative counts.
Problem
Given a haystack and a needle array, create a hashmap of counts and determine whether the haystack contains all needles, handling missing or negative counts.
Your answer
Try one AI text evaluation on us
Get structured feedback, scored against a 4-axis rubric. Premium unlocks unlimited.