Ad
  • Custom User Avatar

    The 'ordered' string was probablly malloc'd so i had to put '\0' manually to every position of the string and everything works now.

  • Custom User Avatar

    Thanks, totally forgot to allocate more memory.

  • Custom User Avatar

    Im kinda confused, not sure what im looking at here. I pass 18 basic tests and it fails here:

    The expression (as strings) (res) == (sol_res) is false: actual=uhgwaukeiexgqcfvwufqjfeuxmhyhcyqztlpnkivdeatwvdrpihnnahzmdwiviojbzyozfybzyvuhyawvhzxhfviyfgtoubesohqiehgrrpydpjywhusbdaz expected=uhgwaukeiexgqcfvwufqjfeuxmhyhcyqztlpnkivdeatwvdrpihnnahzmdwiviojbzyozfybzyvuhyawvhzxhfviyfgtoubesohqiehgrrpydpjywhusbdazywglphewvlbcpiyfontrrbocyxuzpjmmetnipreksfbgcpbqrughvjjhvtvjrgkloxtddxcvrtathriykdvumtawavesrpceakxdxonnhdwdutrexlnydojeinlorcthme`.

  • Custom User Avatar

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

  • Custom User Avatar

    There seems to be something wrong with the compiler or tests. I ran the test and everything is fine but hen i attemped to solve it the results show some extra words that were never in the "words" string. Tried it on the local visual studio code and it gives the expected solution every time.

  • Custom User Avatar

    My bad. I kept re-reading the description and getting it completely opposite of the description, over and over again.

  • Custom User Avatar

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

  • Custom User Avatar

    I understand now. Thought that long long int can hold the same size values as unint64_t. Managed to solve the kata, thanks.

  • 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