You need to sign in or sign up before continuing.×
Ad
  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

    Very very easy compared to other C kata(s?) at 6 kyu. Fun though :)

  • Custom User Avatar

    Same problem here, passes example tests fine, then after submitting there are a load of errors with the final tests.

  • Custom User Avatar

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

  • Custom User Avatar

    Yea I did find the error messages a bit naff, but I couldn't find any docs for php test cases, so ended up just copying and pasting from another kata, then adapting them.

    I've updated the test cases based on the details you've provided, so errors should be more descriptive now.

  • Custom User Avatar

    Good points, thanks for sorting them.

  • Custom User Avatar

    Nice, in C though I took me a while to figure out what I was supposed to be returning xD. It's probably just because I'm not used to C, but when I see a pointer to something I get the impression that you alter it in place, then return a count or response code or something. Although I don't know any other way you can pass an array around in C so I guess I'd better get used to it.

  • Custom User Avatar

    Finally finished this (just about). It's a good challenge, although I think I spent more time trying to figure out what it meant by how it needed to be sorted than actually doing the challenge.

  • Custom User Avatar

    I thought it was good. To be honest, not knowing the algorithm, I just made it up and didn't find it too hard at all compared to similar kata at this grade.

  • Custom User Avatar

    Thanks, this was fun. Although might have suggested some test cases which break insecure regex, and also multiple comment markers on a line.

  • Custom User Avatar

    Nice Kata. Sounds simple, but needs a bit of thought after JS's built in number classes can't handle the big stuff like you need. :)

  • Custom User Avatar

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