Ad
  • Default 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

  • Default 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.

  • Default 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.

  • Default 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.

  • Default 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

  • Default User Avatar

    No problem. I added a note for Prolog language.

  • Default 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?
    
  • Default User Avatar
    1. Can you give an example because here I am lost...
    2. I will precise this point in the description though in the sample tests there is "test(catalog) :- dotest1("nails", "").".
  • Custom User Avatar

    I'm not sure I understand. What i meant is that there already is random tests in this translation.

  • Loading more items...