Question
All I am looking for is what data structure i should use to solve a problem like this and why? when given a set of
All I am looking for is what data structure i should use to solve a problem like this and why?
when given a set of names with fingerprints will identify groups of names that share a fingerprint.
Input is a sequence of lines:
The line begins with one or more non-whitespace characters.
This sequence of characters is the fingerprint.
The fingerprint is followed by one or more whitespace characters, not including newline.
The name begins with the next non-whitespace character and continues through the next newline.
A name may contain whitespace, but a name never contains a newline.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started