Ad
  • Custom User Avatar

    very late, but I did the same. 19 for " does not play banjo" and 1 for null termination

  • Custom User Avatar

    I just had the same issue, I utilized the global counter you suggested and
    made it print out my hands after it got above 100 counts. The test at 120 is the following:

    A,2,3,4,5 vs 9,10,j,q,k.. both are straights.
    Most likely you are doing the same mistake as I was and comparing the highest of each straight.
    But, here the ace is actually 1 not 14. That means K(13) > 5.

    I know this is late, but I hope this is helpful to you.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    I might be a bit late here, but here it is:

    since the function is given as:
    Data* sqInRect(int lng, int wdth) {};

    you must return a pointer to the struct. You have two options.

    initialize with a pointer:

    Data *output;
    ...
    return data;

    or return the pointer to your struct.

    Data output;
    return &data;