• 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
dmasalex Avatar
Name:Алексей Данилов
Clan:Unknown
Member Since:Jul 2020
Last Seen:Sep 2021
Profiles:
Following:0
Followers:0
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations
  • Replies (17)
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • OlivierMoreau
    • commented on "Moving Zeros To The End" kata
    • 5 years ago

    Your keys might have changed. If the original arrays is

    0 => 0
    1 => 2
    2 => 2
    3 => 0

    and your array is

    0 => 2
    1 => 2
    4 => 0
    5 => 0

    the test will expect to see an array with the same values but 0, 1, 2, 3, keys

  • Custom User Avatar
    • mohragk
    • commented on "Directions Reduction" kata
    • 5 years ago

    Yeah, it's a very poor problem statement.

  • Custom User Avatar
    • checkmate123
    • commented on "Moving Zeros To The End" kata
    • 5 years ago

    I don't understand this too. It's the same problem that I had.

  • Custom User Avatar
    • schebotar
    • commented on "Directions Reduction" kata
    • 5 years ago

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

  • Custom User Avatar
    • premature
    • commented on "Sum of Digits / Digital Root" kata
    • 5 years ago

    You are missing a return statement at the last line: else: digital_root(x). Currently, your code returns None to console.

  • Custom User Avatar
    • user4472141
    • commented on "Sum of Digits / Digital Root" kata
    • 5 years ago

    you need a return statement on the last line

  • Custom User Avatar
    • B1ts
    • commented on "Even or Odd - Which is Greater?" kata
    • 5 years ago

    It's not about length of lists, it's about their sum. Next time when you post code, please mark it as spoiler and format it properly (link)

  • Custom User Avatar
    • Chrono79
    • commented on "Even or Odd - Which is Greater?" kata
    • 5 years ago

    It says the sum, not the amount.

    Given a string of digits confirm whether the sum of all the individual even digits are greater than the sum of all the indiviudal odd digits.

  • Custom User Avatar
    • hobovsky
    • commented on "Fix string case" kata
    • 5 years ago

    Yes, I think that's right.

  • Custom User Avatar
    • hobovsky
    • commented on "Fix string case" kata
    • 5 years ago
    • read this paragraph of FAQ
    • read this paragraph of FAQ
    • reproduce failing test case locally in your IDE, and try debugging it locally, it should help
  • Custom User Avatar
    • B1ts
    • commented on "Least Larger" kata
    • 5 years ago

    You're looking for the next larger NUMBER's index, not just smallest index. E.g. [5, 4, 3, 2, 1] and idx 2. By your logic you would return 0, but you should be returning 1, because 3 < 4 < 5. 4 is the least larger number.

  • Custom User Avatar
    • topping
    • commented on "Least Larger" kata
    • 5 years ago

    Oh yeah. Thanks for the correction.

  • Custom User Avatar
    • JohanWiltink
    • commented on "Least Larger" kata
    • 5 years ago

    zero

    *a[i] ( twice )

  • Custom User Avatar
    • topping
    • commented on "Least Larger" kata
    • 5 years ago

    Your error is that the last two lines are finding the smallest index of a number larger than zero instead of the index of the smallest number larger than zero.

  • Custom User Avatar
    • mcschenker
    • commented on "Password should not contain any part of your username." kata
    • 5 years ago

    same issue here. a few (15 or 17) of the hidden tests are rejected. The visible tests are all OK.

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...