• 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
Phosphorus15 Avatar
Name:Unknown
Clan:Gensokyo
Member Since:Jul 2017
Last Seen:Dec 2020
Profiles:
Following:440
Followers:430
Allies:431
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (12)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • rw01
    • commented on "The highest profit wins!" java solution
    • 3 years ago

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

  • Custom User Avatar
    • Megoh
    • commented on "The highest profit wins!" java solution
    • 3 years ago

    Yeah, I'm asking why?

  • Custom User Avatar
    • akar-0
    • commented on "The highest profit wins!" java solution
    • 3 years ago

    Because that's what people voted.

  • Custom User Avatar
    • Megoh
    • commented on "The highest profit wins!" java solution
    • 3 years ago

    Why more Clever than Best Practices?

  • Custom User Avatar
    • dinglemouse
    • commented on ""The Pony Express" Haskell Translation"
    • 6 years ago

    Approved. Sorry it took so long...

  • Custom User Avatar
    • JohanWiltink
    • commented on ""The Pony Express" Haskell Translation"
    • 6 years ago

    Looks reasonable.

    Printing headers in random tests is quite impossible in QuickCheck, but when a test fails, input, actual and expected are printed ( and testing is stopped ).

    I'll let you approve it yourself.

  • Custom User Avatar
    • Phosphorus15
    • commented on ""The Pony Express" Haskell Translation"
    • 7 years ago

    Okay~ after some slight changes on test cases, I've ensure that they are identical to the java ones

    Thanks for your tips~

    Best Regards.

  • Custom User Avatar
    • dinglemouse
    • commented on ""The Pony Express" Haskell Translation"
    • 7 years ago

    OK - how about just add the missing test cases then, and forget the output if you say it is not possible.

    Maybe you will find the JavaScript translation helpful for the missing tests.

    And please change that ExampleSpec name to something sensible. It looks like cut/paste from an example...

  • Custom User Avatar
    • Phosphorus15
    • commented on ""The Pony Express" Haskell Translation"
    • 7 years ago

    Sadly, I'd been unable to satisfy all your requests above

    I'm not sure that QuickCheck library in haskell allow such a variety.

    And (maybe ?) its unrealistic to try to "output" something within a Monad in haskell (esp. when it comes to a forAll check)

    But I tried my best to cope with the original Java Kata.

    Wish you could help me improve this translation together :) .

  • Custom User Avatar
    • dinglemouse
    • commented on ""The Pony Express" Haskell Translation"
    • 7 years ago

    Thank you for translating my Kata.

    Please add the following and I will approve it:

    • There should be output for the random tests (refer to original Java Kata)
    • There are couple of missing test cases (e.g. below)
    • assertEquals(1, Dinglemouse.riders(new int[]{50,50}));
    • assertEquals(100, Dinglemouse.riders(java.util.stream.IntStream.range(0,100).map( x->90 ).toArray()));

    TIA.

  • Custom User Avatar
    • Phosphorus15
    • commented on "The Pony Express" kata
    • 7 years ago

    Haskell Translation submitted, review welcomed

  • Custom User Avatar
    • Phosphorus15
    • commented on "Friend or Foe?" kata
    • 7 years ago

    Haskell translation added :) ,review welcomed

  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...