Originally posted by JIGAR GANDHI:
Thank you for the reply it helped but my friend Joe Ess says that the quality of the program does not depend upon the lines of code. then being a student and conducting competition for students then tell me the unbiased method to judge a code( actually we can judge but we do not want to get in argument with the participants who are hungry for the prize).
Is there any standard method.
Yes, there are good ones you can do.
Here's one.
Require the solution to be in a format, such that, you can automatically
test his solution by passing it to you test program.
If all of them have correct solutions, then you can base it on who finished first.
You can also specify which java statements, classes, etc. are allowed.
For example, the solution must 'implement' an 'interface' that you provided.
You simply create a test program that tests his solution, as you know the interface. Test it on all scenarios to see that his solution is correct.