• 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
josephan Avatar
Name:Joseph An
Clan:Unknown
Member Since:Dec 2014
Last Seen:May 2020
Profiles:
Following:1
Followers:1
Allies:1
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations
  • Replies (8)
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • rotaliator
    • commented on "Summarize ranges" kata
    • 10 years ago

    it works, finally! :)

  • Custom User Avatar
    • GiacomoSorbi
    • commented on "Summarize ranges" kata
    • 10 years ago

    The random test cases were fixed, I forgot to check the basics: now is done!

  • Custom User Avatar
    • samitnuk
    • commented on "Summarize ranges" kata
    • 10 years ago

    ['-3->0'] should equal ['-2', '0', '-1', '-3->-2']. Please fix.

  • Custom User Avatar
    • bbugh
    • commented on "Summarize ranges" kata
    • 10 years ago

    This problem still exists in the Ruby tests.

  • Custom User Avatar
    • GiacomoSorbi
    • commented on "Summarize ranges" kata
    • 10 years ago

    Fixed (or so I hope), sorry for the inconvenience!

  • Custom User Avatar
    • rotaliator
    • commented on "Summarize ranges" kata
    • 10 years ago

    same problem using Python
    ['-3->0'] should equal ['-2', '0', '-1', '-3->-2']

  • Custom User Avatar
    • joh_pot
    • commented on "Summarize ranges" kata
    • 10 years ago

    Arrays should be sorted. It is an oversight from the Python and Ruby translator. I will ask him to fix up the test cases. Thanks for reporting this.

  • Custom User Avatar
    • biskinis
    • commented on "Summarize ranges" kata
    • 10 years ago

    I noticed that in Python too, some test inputs are not sorted. This contradicts the problem statement but it is possible to adjust solutions to cope with unsorted input easily enough.

    Perhaps the problem statement should be amended to indicated that the overall array is not necessarily sorted, but some ranges within the array are.

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...