Good morning guys,
I am working on implementation of tideman. Particulary at implementing sort_pairs function. I have written it and tested - and the output seems sorted in a proper way. However - check50 returns it as an error. Any idea what the problem might be?
- I extended pair data struct in order to store information about strength of victory.
typedef struct { int winner; int loser; int strength; } pair;
- The strength is being updated (correctly), as part add pairs