Ad
  • Custom User Avatar

    Nice code , but asprintf is not part of the standart library of C lenguage, saing that, can give sa¡ome issues on windows.

  • Custom User Avatar

    Cute, but this is GCC, not C. Also the format of (n-1) using %d is not portable since %d requires an int but n is a (size_t).

  • Custom User Avatar

    so it won't work on smth like msvc

  • Custom User Avatar

    not standard -_-

  • Custom User Avatar

    Practice more. ;)
    This is not the kind of thing you'll learn in a book.

  • Custom User Avatar

    Completely agree with you, prbsh9, I thought the same thing. Spent a bit of time answering the question that was posed, only to find out it was a waste of time because the solution requires a completely different approach. Apparently, we're supposed to be mind readers. I'm glad I answered the actual question that was asked correctly; just a shame I have to press 'skip' now.

  • Custom User Avatar

    What the heck........................ Why dont you include some of the jumbled and shity examples like 826591414YV}AeejE755373346AT}}27l12456100629s12989B20#^rfr51968p62 in the sample test and description.......... Spent hours thinking a method and now everything is freaking useless. If the random test are so like f--k... why is not the sample and description........... Seeing the description and sample test it feels like it would come only alphanumeric and first text then numbers...
    .
    .
    Someone learn how to waste others precious time............... TEACH ME IF I AM NOT GETTING SOMETHING OR EVERYTHING IS JUST LIKE THIS

  • Custom User Avatar

    How the heck do these ideas appear.... Any suggestion except practice more ? This is so brilliant man.

  • Custom User Avatar

    Thanks

  • Custom User Avatar

    Add a print statement in your code to know the arrays.

  • Custom User Avatar

    Sorry, I am beginner or what but i dont understand where to print the input.. I did not understand.. What did you mean ?

  • Custom User Avatar

    Print the input.
    Post only once the same question.

  • Custom User Avatar

    Cant I see exit code and question of which I got it wrong ??
    I see like I got 3 wrong but I dont know what got me wrong.. What was the array1 and array2 which got me wrong ? ....

  • Custom User Avatar

    Just now realized I forgot to add the freaking return statement...

  • Custom User Avatar

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