Ad
  • Default User Avatar
  • Custom User Avatar

    Haskell and JavaScript: yes.

    Tests are language-specific, so mentioning the language you're having this question in would be useful. Help us help you!

    Closing.

  • Custom User Avatar

    Your solution is absolutely wrong. It's about the separate values on the board, not their sums.

  • Custom User Avatar

    I wonder if something like cytoolz would help brute force

  • Custom User Avatar

    You are terribly wrong here accusing the author of this kata in some sort of deceit. g964 spent time creating this interesting kata.
    It's not kyu 8 kata, it's kyu 5 and all kata of this level are expected to be solved by a more advanced algorithm than a brute force one. If you are expecting naive algorithms, maybe it's not a bad idea to try kata kyu 7-8.

  • Custom User Avatar

    dunno about clojure, but in python, yes.

  • Default User Avatar
  • Default User Avatar
    (def data [
      {:name "Joe" :age 20}
      {:name "Bill" :age 30}
      {:name "Kate" :age 23}
    ])
    
  • Default User Avatar

    the tests are designed to fail for bruteforce solutions

    Not at all... The tests are almost the same in all languages and note that 4791 guys passed the kata.

    the example tests have deceivingly small numbers

    Not a problem. You can add tests with bigger numbers (maybe trying first on a sheet of paper and a bit of thinking).

  • Default User Avatar

    It is a question, not an issue (note at the top of the page that 42 guys passed the Clojure translation).
    For the deleted ns push the "RESET" button.