0

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?

  1. I extended pair data struct in order to store information about strength of victory.

typedef struct { int winner; int loser; int strength; } pair;

  1. The strength is being updated (correctly), as part add pairs

enter image description here

  1. And a simple sorting argument is implemented as part of sort_pairs enter image description here

You must log in to answer this question.

Browse other questions tagged .