My first method eliminates waiting to see if your students code runs fast enough. Unless complexity is part of the assignment, I'd still say go for the hash.
It's also less work for the professor/grader.
My first method eliminates waiting to see if your students code runs fast enough. Unless complexity is part of the assignment, I'd still say go for the hash.
It's also less work for the professor/grader.