Ad
  • Custom User Avatar

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

  • Custom User Avatar

    The first number in arr was never unique! So please consider this possibility (for my sake)! - ((

    We can't, as I said, there is (and there was, I didn't add it) a fixed test where the unique is the first one, so... You said your code passed 15 of 16 tests, your code failed that one, it's very simple. It's an edge test case to filter wrong solutions like yours. Fix your code so it can find the unique number even if it is the first one.

    About statistics:

    89% of 4,775 (4,775 / 13,625 - could have given a rating in total). <- This means that from 4,775 persons who cared about voting (in all languages), 89% voted satisfied.
    13,625 of 39,367 (less than 50% completed the task) <- No, this means that from a total completions in all languages of 39,367, 13,625 are from javascript. This isn't exactly true because a single warrior can complete the kata in more than one language and it doesn't count as +1 to total completions but it does count in language completion.
    Total Times Completed 39372 / Warriors Trained 68536 is roughly 57%.

    I believe that most of those who did NOT put a rating were dissatisfied with the task!

    Unproven

    P.S.: I see you've passed the kata but your code is still wrong, and it'll fail with inputs like this [2,1,1,1,1]. Check in Solutions how it is properly solved.

  • Default User Avatar

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

  • Custom User Avatar

    ... :/

    btw:

    DIDN'T COME TO YOU THAT THE FUNCTION HAS BEEN BROKEN RECENTLY?

    • That's called yelling (the caps). Bad idea.
    • and didn't that occur to you that you're currently trying to bend the reality so that your code is correct while maybe it just... isn't...? ;o
  • Custom User Avatar

    Perhaps there is another solution to this situation! DIDN'T COME TO YOU THAT THE FUNCTION HAS BEEN BROKEN RECENTLY? After the moment you went through it a month or a year ago or something? Have you tested this function today?

    Yes I did, and it works. When I see someone reports an issue, the first thing I do is testing the code to see if there is indeed an issue or not. I added a little code to make sure in random tests the numbers were different, but the chance that'd happen was near to 0 to begin with. And the code you posted was failing for another reason, as I already pointed out.

    They ALWAYS start with a NOT unique number

    There is a specific test where the unique number is the first one, why did you assume otherwise?

  • Custom User Avatar

    I hope this is not my interpretation error

    well, looks like it is... ;) You made the assumption that the unique number would never be at first position, but that's not part of the specifications.

  • Default User Avatar

    Chrono79(1 kyu). Hello! Thanks for the answer, but ... The problem is that I have already checked the data sent to the function! They ALWAYS start with a NOT unique number, for example: [0, 1, 0] or [1, 0, 1]! Moreover, as you can see from my remark above - I passed 15/16 sub-tasks! How is this possible with such an error? Thus, your remark on the code is not appropriate =( . By the way, there is another problem with numbers, when you try to sum them up, it turns out that an array with a mass of ones is equal to an exorbitant number!
    Perhaps there is another solution to this situation! DIDN'T COME TO YOU THAT THE FUNCTION HAS BEEN BROKEN RECENTLY? After the moment you went through it a month or a year ago or something? Have you tested this function today?

    But at the expense of statistics ... I mean ... God, does it not work as I thought all this time ?? -_- I'll go ... I'll try to find explanations for these icons ... I hope this is not my interpretation error (((

    ----------------@few minutes after...@-----------------------------------------
    89% of 4,775 (4,775 / 13,625 - could have given a rating in total).
    13,625 of 39,367 (less than 50% completed the task).

    No! It seems that I correctly understood these statistics icons (correct me if not)! My comment was of a different nature. It was a matter of psychological evaluation in the first place! Okay ... I'll explain my remarks on statistics in a different way!
    According to my observations (although few of them have been done), the standard for passing assignments of the lowest category is 50-66% of the participants. And this task is lower, since only 13k out of 40k were completed! The second remark was addressed to the fact that out of 13,000 who passed the task, only 5,000 gave a positive assessment! I believe that most of those who did NOT put a rating were dissatisfied with the task! And so they did not waste their time to honor this assignment! Maybe I'm wrong, psychology is not an exact science, especially mine ... (=

  • Custom User Avatar

    Dmitrys2, with that code you wrote, you'll fail tests with inputs like this: [1, 0, 0, 0]. The kata is ok.

    I repeat, why is the number of completions so low?

    There are more than 13k solutions in javascript.

    And the number of unsatisfied people is so high!?

    It has a 89% satisfaction rating, does that seem low to you?

  • Default User Avatar

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

  • Custom User Avatar

    Hi,

    not an issue, a question. Long story short: read what's in there to find out what you did wrong. ;) (and apparently, you didn't get what the actual task really is... Not sure, since I don't really get your explainations. But What I'm sure about: the kata isn't broken, hence "not an issue, a question")

    cheers

    EDIT: make sure it doesn't happen because you're mutating the input (you didn't tell about the language you use so I cannot check)

    EDIT²: if ever this is the mutation of the input problem, raise another issue specifically about that (language+problem), thx

  • Default User Avatar

    Hello! I believe this task is deeply broken for a long time! =) I have passed all tests except one!! Try to check the human-passing statistics firstly, than go for the function's parameter as var arr basically with looping @@console.log(arr[i]);@@ You will see that parameters, have rarely in themselves the wrong conditions: arrays + simple numbers outside of the array! Also 2 inputs-tasks are partially broken (with the large number '1099511627776'). Because: 1) they always have the same numbers in both types of compare. 2) I can not see them in the second array, but they are there (some math with those numbers tells me itself). 3) they always ask to return 0, and large number 1099511627776, but its a fake solution, I believe! Both tasks have 1099511627776 as unique, then why I should return zero at one of them???