PREV INDEX NEXT

Author: Unknown
Subject: Validating command-line arguments
Date: Thursday, 09 Apr 2020, 22:38:38

I'm having trouble coming up with an efficient way to verify that the characters appearing in INITIAL (counting multiplicities) appear in GOAL. Is there a better way to approach it than doing something like keeping track of the number of occurrences of each ASCII decimal value in an array for both GOAL and INITIAL (where array indexes would be the ASCII decimal values and the value stored at an index would be the count) and then comparing the two arrays at the end?
PREV INDEX NEXT