Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Ignore order on task pairing checks #197

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stefantds
Copy link

In problem 17.01, the problem statement doesn't mention any particular order of the output. Currently the test only accepts the given order in the test file.
My personal understanding of the problem statement is that the task assignment should

  • also accept a different order of assignments: e.g. [(0, 1), (2, 3)] and [(2, 3), (0, 1)] should be equivalent
  • task 1 and task 2 should be interchangeable: e.g. (0,1) and (1,0) should be equivalent

The proposed fix implements a way to achieve the above-mentioned fixes.

Context: while working on https://github.com/stefantds/go-epi-judge I got to look at some Java test code a bit closer. I've found some small potential improvements. I am opening a separate PR for each. Please have a look if there is something that can be improved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant