• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
joshwalters Avatar
Name:Josh Walters
Clan:Unknown
Skills:clojure, haskell, java, python, hadoop, machine learning
Member Since:Dec 2014
Last Seen:Oct 2017
Profiles:
Following:1
Followers:2
Allies:1
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (21)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • FArekkusu
    • created an issue for "Custom Regex Language" kata
    • 4 years ago

    No random tests.

  • Custom User Avatar
    • FArekkusu
    • created an issue for "Custom Regex Language" kata
    • 4 years ago

    The use of regex is not restricted.

  • Custom User Avatar
    • joshwalters
    • commented on "Sort binary tree by levels" kata
    • 11 years ago

    Yep, spent an hour on this until I realized that the test was broken. The test is written for pre-order traversal, not level order traversal.

  • Custom User Avatar
    • joshwalters
    • commented on ""Sum Arrays" Clojure Translation"
    • 11 years ago

    Good point, added to description.

  • Custom User Avatar
    • jhoffner
    • commented on ""Sum Arrays" Clojure Translation"
    • 11 years ago

    Missing clojure example within description

  • Custom User Avatar
    • joshwalters
    • commented on "Readability is King" clojure solution
    • 11 years ago

    Wow, very nice. Simple and clever.

  • Custom User Avatar
    • joshwalters
    • commented on ""MergeSort "merge" function" Clojure Translation"
    • 11 years ago

    Good point, changed function name to mergedsorted.

  • Custom User Avatar
    • jhoffner
    • commented on ""MergeSort "merge" function" Clojure Translation"
    • 11 years ago

    The description refers to a function called mergedsorted. Either the description or the code should be changed so that they match.

  • Custom User Avatar
    • keithhamilton
    • commented on "Vector Affinity" kata
    • 11 years ago

    had to unpublish, save, then re-publish. the provided tests should be working properly now.

  • Custom User Avatar
    • keithhamilton
    • commented on "Vector Affinity" kata
    • 11 years ago

    Sorry, I've been trying to update that all day, but every time I try to "re-publish" the kata with the corrected test cases, it never finishes, just sitting at about 99% for as long as I'm willing to let it go.

    I am working on getting that fixed.

  • Custom User Avatar
    • thenonameguy
    • commented on "Vector Affinity" kata
    • 11 years ago

    The provieded tests gave me EOF errors.

  • Custom User Avatar
    • keithhamilton
    • commented on "Vector Affinity" kata
    • 11 years ago

    I think the ratio/float thing is trivial enough. The point of the kata is to return a float that indicates how similar two vectors are. In practical application, if a ratio were needed, it wouldn't be an issue to remove the float conversion.

  • Custom User Avatar
    • mtthw123
    • commented on "Vector Affinity" kata
    • 11 years ago

    If you wanted to allow it (and I don't think it's a big deal either way), you could convert to float in the test which would allow either floats or ratios.

  • Custom User Avatar
    • mtthw123
    • resolved a suggestion on "Vector Affinity" kata
    • 11 years ago

    Seems fair enough. As long as it's clear what is required, and I'd agree that the tests do that now.

  • Custom User Avatar
    • keithhamilton
    • commented on "Vector Affinity" kata
    • 11 years ago

    mtthw123, after typing that bit a few times, and feeling like it was giving too much away, I ended up adding a couple more example test cases, one in which the vectors were not same-length, then mention that it holds a clue to the correct solution (or a correct solution).

    (= (vector-affinity [6 6 6 6 6 6] [6]) (float (/ 1 6))

    Just since here obviously the second vector is shorter, and the equality to (float (/ 1 6)) illustrates that the larger of the two is used as the denominator.

    What are you thoughts on that?

  • Loading more items...
  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...