Ad
  • Custom User Avatar

    Approved

  • Custom User Avatar

    Yes, you can rearrange the characters, you can't use the same one more than once.

  • Custom User Avatar

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

  • Custom User Avatar

    that was an awesome challenge, thank you!

    I ended up with a Dart 2.14 solution that completed the "basic tests" in 36ms, the "small random tests" in 101ms, and the "large random tests" in 97ms.. I think that's pretty decent, considering I'm still learning Dart. (:

  • Custom User Avatar

    FULL DISCLAIMER: I'm still learning Dart, so I'm open to any and all constructive criticism..

    for what it's worth, the final test run before a submitted completed the "basic tests" in 36ms, the "small random tests" in 101ms, and the "large random tests" in 97ms.. that seems pretty decent to me. (:

    (edit) while looking through other solutions, I had a completely random thought... why does it seem that everyone only uses fold to sum a list of things?? just like JS's reduce, it's SO much more powerful than people give it credit for.

  • Custom User Avatar

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

  • Custom User Avatar

    that's so beautifully succinct... nicely done! (:

  • Custom User Avatar

    FWIW: some of the random tests on this Kata made it fun to read the output logging... (: saw a couple that went over a 1000 years. lol.

  • Custom User Avatar

    folding into a String.. (: well that's a nifty idea.

  • 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

  • Default User Avatar

    Looping does not need to go through the end. It can stop much sooner if both even/odd arrays have at least 3 values, and each of them has at least 1 value.

  • Custom User Avatar

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

  • Custom User Avatar

    nice kata! :) feels like a good one for learning to balance "clever" and "readable" code... there are many steps that need to be done, but too many one-liners makes for very hard-to-read code.

  • Custom User Avatar

    I like your use of enum here, hadn't thought of that.. (:

    that said, in my humble opinion, I wouldn't assign default values like that in the constructor arguments. :/ purely in the interest of clearity and readability, I feel it's better to do that in the constructor body.

  • Loading more items...