Ad
  • Custom User Avatar

    Thanks for raising the issue, but you should also reply to the post where I published the translation (or message me on Discord), otherwise I don't get notified. Which I didn't, for 2 years... Random tests generated a bunch of atoms, not strings, but I just added a fix for that.

  • Custom User Avatar

    Removed the link

  • Custom User Avatar

    Thanks! Looking by alphabetical order I didn't see it-(

  • Custom User Avatar

    We do, actually (only active for the past week or so), but you probably need to get pinged, and I never see you online :D

  • Custom User Avatar

    We don't have a Prolog group.

  • Custom User Avatar

    Uhm, we can reply quicker with @ mentions and stuff..? (unlike here, where you never know if (and when) you'll get notified)

    I'll close the issue then.

  • Custom User Avatar

    There are duplicate names and surnames in the arrays of names and surnames but there will be no duplicates in the inputs: look at the function "compose". If you think it's not enough, in addition I can modify the arrays of names and surnames in order to suppress duplicates in these arrays.

    I can't see how I can resolve such issues quicker using CW Discord but you will tell me.

  • Custom User Avatar

    You could resolve such issues much quicker using CW Discord, BTW :D

    I still see some duplicate names and surnames in random tests' code, so I won't close this issue yet.

  • Custom User Avatar

    OK, thanks you all. It seems I have forgotten this part of the description, sorry!

    So as not to invalidate solutions I modified the random tests: duplicates should not appear any more in the inputs.

  • Custom User Avatar

    From description:

    It can happen that in two distinct families with the same family name two people have the same first name too.

    So either this test case doesn't exist, or it's incorrect for Prolog (using the ref solution, which removes duplicates). Both cases are problematic.

  • Custom User Avatar

    @razetime: please can you give an example so that everyting be clear? As far as I know tests are the same as in other languages but I can be wrong.

  • Custom User Avatar

    Not probably, definitely x)

  • Custom User Avatar

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

  • Custom User Avatar

    No problem. I added a note for Prolog language.

  • Custom User Avatar

    OK, I understand.

    Did you see the "Initial solution":

    % If the article is not in the catalog then R equals "".
    % R substrings (separated by "\n") must be in alphabetic order
    catalog(S, Art, R) :-
    	R = "".
    ```.
    
    I thought it was sufficient there and not in the description because in the description it can cause trouble to newcomers in other language but I can have been wrong. What do you think?
    
  • Loading more items...