• 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
coderWarMan Avatar
Name:ldx
Clan:dgut
Member Since:Sep 2018
Last Seen:Jan 2021
Profiles:
Following:1
Followers:2
Allies:1
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (18)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • theonlypeti
    • commented on "Sum of Intervals" python solution
    • 4 years ago

    what the hell is happening in that list comprehension? How is the range(a,b) constructed if a,b are defined in a child loop?

  • Custom User Avatar
    • 5FeetUnder
    • commented on "Sum of Intervals" python solution
    • 4 years ago

    you can also just use {} braces instead of [] to directly create a set comprehension without the need of converting the list with set()

  • Custom User Avatar
    • MiracleEagle
    • commented on "Sum of Intervals" python solution
    • 5 years ago

    The best solution that I've seen so far

  • Custom User Avatar
    • Chococoin
    • commented on "Directions Reduction" kata
    • 7 years ago

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

  • Custom User Avatar
    • Chrono79
    • commented on "Directions Reduction" kata
    • 7 years ago

    Try to not mutate the original array, create a new one and return that.

  • Custom User Avatar
    • coderWarMan
    • commented on "Directions Reduction" kata
    • 7 years ago

    In other words,I should modify the elements of the array and return it.

  • Custom User Avatar
    • Chrono79
    • commented on "Directions Reduction" kata
    • 7 years ago

    You have to reduce that and only "WEST" should remain.

  • Custom User Avatar
    • coderWarMan
    • commented on "Directions Reduction" kata
    • 7 years ago

    "NORTH", "SOUTH", "SOUTH", "EAST", "WEST", "NORTH", "WEST": array lengths differed, expected.length=1 actual.length=7
    Can you please explain to me what is the meaning of this?

  • Custom User Avatar
    • dangoth
    • commented on "One Line Task: Squirrel And Tree" kata
    • 7 years ago

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

  • Custom User Avatar
    • coderWarMan
    • commented on "Vigenère Cipher Helper" kata
    • 7 years ago

    I have decoded , encoded and have passed some tests.Why is there such a mistake?
    test.assert_equals(c.encode('\xe3\x82\xab\xe3\x82\xbf\xe3\x82\xab\xe3\x83\x8a'), '\xe3\x82\xbf\xe3\x83\xa2\xe3\x82\xbf\xe3\x83\xaf') File "/home/codewarrior/solution.py", line 27, in encode num=new_dict[self.key[i]]%26+new_dict[text[i]] KeyError: '\xe3'

  • Custom User Avatar
    • coderWarMan
    • commented on "One Line Task: Squirrel And Tree" kata
    • 7 years ago

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

  • Custom User Avatar
    • coderWarMan
    • commented on "Help your granny!" kata
    • 7 years ago

    ok,I going to try again.

  • Custom User Avatar
    • g964
    • commented on "Help your granny!" kata
    • 7 years ago

    Print the input to see what happens.

  • Custom User Avatar
    • coderWarMan
    • commented on "Help your granny!" kata
    • 7 years ago

    python

  • Custom User Avatar
    • g964
    • commented on "Help your granny!" kata
    • 7 years ago

    Which language?

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...