Ad
  • Custom User Avatar

    261235, "[126235, 2, 0] means move the digit which is on the index 2 to the index 0,not swap the digits on the index 2 and index 0.

    261235, "[612235, 0, 2] is the right number not 126235

  • Custom User Avatar

    The logic of indexes order is weird. I believe it does exist since a lot of people solved it, but it is weird and poorly described.

  • Custom User Avatar
  • Custom User Avatar

    If there is a flaw in your code, at CW or with Eclipse you will get the same false result. I can only repeat that there is no error in the tests which are the same in all languages for the fixed ones.

  • Custom User Avatar

    230--3---[91, 74, 73, 85, 73, 81, 87] this is "Example tests"
    331--2---[91, 74, 73, 85, 73, 81, 87] this is my problem,and i failed at this condition ,✘ expected:178 but was:228,i test my program in eclipse,same data,the result is 178.so i confused.

  • Custom User Avatar

    I think you can see this test in "Example tests". In my previous post I only gave an example of what happens - normally - when a test fails.

  • Custom User Avatar

    k == 2
    is that same condition?

  • Custom User Avatar

    I just tried a bad answer. Normally you have (and I had) something like that ✘ expected:<328> but was:<228> for example.

  • Custom User Avatar

    t=331
    k=2
    ls=[91, 74, 73, 85, 73, 81, 87]
    my answer is 178 but "✘ expected:<178> but was:<228>"

  • Custom User Avatar

    my problem,it was exception.

  • Custom User Avatar

    ✘ 1
    what is that mean?I fail and the tip is "✘ 1";I can't understand.
    Help,please.

  • Custom User Avatar

    That would lead to [612235,0,2] instead, you can only move one digit.

  • Custom User Avatar

    908 guys passed the kata, the tests are the same in all languages and are correct.
    BTW when you ask for an answer, post a question, not an issue.

  • Custom User Avatar

    230--3---[91, 74, 73, 85, 73, 81, 87]
    expected:178 but was:228
    is that correct test?

  • Custom User Avatar

    You should use malloc or calloc for the result.
    Thanks for your post.

  • Loading more items...