Ad
  • Default User Avatar

    It's because I am using global variables and calling function multiple times! Figured it out!

  • Default User Avatar

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

  • Default User Avatar

    got it! Seriously thanks for your immense help! I have a hard time imagining
    how I would have seen that without your help!

  • Default User Avatar

    As far as I can tell its the amount of pairs in the answer which is why I allocate the Pair** with that amount so the array of structs is that length.

  • Default User Avatar

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

  • Default User Avatar

    Howdy all,
    I'm in C. does this function

    char* array2StringData(Pair** arr, int sz);
    

    only work when the Pair** is pointing at a static array?
    Because I created a dynamic array that i believe gives the correct answers
    and that function is giving a {} result.

  • Default User Avatar

    Thank you all very much!! It's working honky dory now!

  • Default User Avatar

    Thank you, i will try and figure out how to do it withoit that. I put it there because the function calls itself and i didn't know how to retain the value.

  • Default User Avatar

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

  • Default User Avatar

    Am I allowed to paste it here what I am doing?

  • Default User Avatar

    I am doing this in C in Codeblocks and these test cases that my code is failing here
    are generating the correct expected answers in my IED. Does it have anything to do
    with the combinationUtil I am using in the code or something else?

  • Default User Avatar

    \all distances are positive or null integers\

    Hi all.
    what are null integers?

  • Default User Avatar

    Because they are initializing with these definitions:
    long first = numbers[0], second = numbers[1];

    size_t i = 2 means the first numbers[i] is really numbers[2].

  • Default User Avatar

    ok, Thank you very much! Will try and be more like a carpeneter with these from now on.

  • Default User Avatar

    no estoy seguro pero creo k si te dejan ver soluciones ajenas antes de resolverlo propiamente. creo? apenas llegue aki.

  • Loading more items...