Ad
  • Default User Avatar

    Thanks for putting this together. Working this kata did a lot to force me to understand how lenses work.

  • Default User Avatar

    Agreed. Test case is f = x * x with n = 4 over [2,6]. I don't see how this can be -6.0.

  • Default User Avatar

    Thanks for this. I like Kata for which brute force times out and makes me think about the math. Plus, it's one of the few that I could solve with a (convoluted) one liner.

  • Default User Avatar

    Extremely enjoyable kata. Thanks for taking the time to put this together with a clear problem statement and nice tests.

  • Default User Avatar

    I actually kind of disagree with this "feature" request. Own your ugly, messy code. It's a normal part of the process. All projects build technical debt, and that debt comes from messy unrefactored code. Don't let your ego prevent you from getting working code out the door. I think having your old solutions also lets you look at your own evolutionary process. One of the points of katas is that they are something that you repeat many times until you can do them perfectly.

  • Default User Avatar

    The test cases below your code block are not provided, and have only a dummy test that compares the string literals of "actual" and "expected". You can either copy in your own unit tests, or ignore them and submit.

  • Default User Avatar

    Really nice. Fun, non-trivial problem.