Ad
  • Custom User Avatar

    you work indivudally and don't use chatGPT and you're the best coder in the world bro

  • Default User Avatar

    Should be all fixed now. Note that int changed to long, so you'll need to change that.

  • Default User Avatar

    (cw doesn't send out notifications in this scenario so I didn't see your messages until now)

    Yeah the issue isn't solved. But it's a duplicate. So the issue is still open. And it's being worked on. Probably. The translation author did poke at it but it needs another pass and uh. The point is, the issue isn't being ignored.

    I think you're wrong about the size being different from 8 though. Maybe you're printing it in some weird way that you're looking at two of them. Java people seem to be prone to that kind of thing, while for example python/js people can just print it and get it neatly formatted and therefore won't mix them up that way. (not that it matters until the other issue gets fixed)

  • Default User Avatar

    by printing. please don't open issues without having fully worked out what's going on. if there already is an issue that you think matches, don't create a duplicate.

  • Default User Avatar

    what was the test then?

    not passing tests is in itself normal.

  • Default User Avatar

    One way is to look for a formula that, given i and j, returns the value in the array at position i,j. In row r, the elements increase from 1 to r in the first r columns, remain at r until column r from the end, and then decrease to 1. By comparing the row and column value appropriately, you can figure out what the array element has to be.

  • Default User Avatar

    Take a careful look the example tests.

    If the difference is 3 or 4, then 3 steps are required.

    If it's 5 or 6, then 4 steps are required.

    If it's 7-9 then 5 steps are required.

    If it's 10-12, then 6 steps are required.

    If it's 13-16, then 7 steps are required.

    And so on.

    What causes the number of steps to increase to the next number?

  • Custom User Avatar

    oh okay. Out of curiousity, which language(s) did you try?

    When I first made this kata, I thought it was better not to include tests in an attempt to encourage people to write their own, but that might not be what the community considers "best practices" now.

    As for the errors, did they give any error messages?

  • Custom User Avatar

    Too easy, or...?