Ad
  • Custom User Avatar

    No idea, your current code passed the tests, without the code that produced that error there is nothing we can do. Closing.

  • Custom User Avatar

    You're not supposed to include the id (or any of the original values):

    Your task is to make a new table where each column should contain the length of the string in the column to its right

    Each column only should contain the length of the string in the column to its right.

  • Custom User Avatar

    Does anyone know what's wrong with my output??

    id |name |legs |arms |characteristics

    1 5|Cyril 4 |6848 5 |97956 11|big, smelly

    2 4|Tiny 4 |6381 3 |154 19 |small, stinky, loud

    3 5|Niall 5 |92450 5|65447 9 |flatulent

    4 4|Umph 4 |5461 3 |919 14 |idiotic, nasty

    5 6|Martin 5|96170 5|61652 23|mad, stupid, bad-breath

    Isnt this what the exercise asks for? It says that column id should be an int... How am I supossed to include the id AND the length of the next column using an int?????? you can't put more than 2 ints in a single column...

  • Custom User Avatar

    Ooo that makes sense !
    Thanks for the fast reply :)

  • Custom User Avatar

    It's a very good kata, but I find weird that a len 0 array gets represented as [ [ ] ] since that would make a 1 x 0 grid, yet the description clearly states that it's an n x n grid.

    Yes, I know it says at the bottom how it's represented. It still makes no sense.

    I had to make an additional if statement to my solution so it would pass the empty array case, if it was just [ ] (0 x 0) it would've passed without the need of an additional if, as my solution (and many others from what I've seen in other comments) works for all grids n x n, what the kata asks for.

    I'm rating it as somewhat satisfied instead of very satisfied because of that. I'll rate it very satisfied if it get's changed.

  • Custom User Avatar

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

  • Custom User Avatar

    Thanks much!

  • Custom User Avatar
  • Custom User Avatar

    There is something wrong in Go. My function returns the sample tests correctly if I execute it manually from my terminal, somehow it's not passing the test values when copy and pasting the code here, gives completely different values.

  • Custom User Avatar

    The tests are wrong in Golang. It says population greater or equal to p. Yet in reality it's population greater to p...

  • Custom User Avatar

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

  • Custom User Avatar

    Finally one that does not use net package.