Editorial for CCC '11 S2 - Multiple Choice
Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.
Submitting an official solution before solving the problem yourself is a bannable offence.
Author:
Scan the two lists into an array, and compare them.
Time Complexity:
Comments
This comment is hidden due to too much negative feedback. Show it anyway.
You actually don't need to do the problem
I know this solution would work with Java. Not sure about other languages. Sorry about being unclear.
JohnstonLiu Don't worry, it works the same for each language. Or well, at least I did it in C++ exactly as you describe and I got an AC