• 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
codestar101 Avatar
Name:Anuj J James
Clan:Unknown
Member Since:Jan 2021
Last Seen:Jul 2023
Profiles:
    Following:0
    Followers:0
    Allies:0
    View Profile Badges
    Ad
    How many Kata did you complete in 2024?
    Discover our top moments in 2024 and how you can level up in 2025.
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (16)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • sid114
      • resolved a question on "Consecutive strings" kata
      • 3 years ago

      .

    • Custom User Avatar
      • akar-0
      • commented on "Evens times last" kata
      • 4 years ago

      Please use markdown tags to format your code or it is very discomfortable to read: how-to-format-code-in-markdown.

    • Custom User Avatar
      • Chrono79
      • resolved an issue on "Tribonacci Sequence" kata
      • 5 years ago
    • Custom User Avatar
      • Chrono79
      • commented on "Tribonacci Sequence" kata
      • 5 years ago

      Not a kata issue. Use Question label next time.

      returns the first n elements - signature included of the so seeded sequence.

      How many elements are you returning there?

    • Custom User Avatar
      • codestar101
      • created an issue for "Tribonacci Sequence" kata
      • 5 years ago

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

    • Custom User Avatar
      • Chrono79
      • commented on "Consecutive strings" kata
      • 5 years ago

      You shouldn't change the order of the strings in the array, it's been discussed many times already (some post are hidden, but some are still visible).

    • Custom User Avatar
      • codestar101
      • created a question for "Consecutive strings" kata
      • 5 years ago

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

    • Custom User Avatar
      • codestar101
      • commented on "Evens times last" kata
      • 5 years ago

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

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

      @best27
      that's no good either because python as a language does not promise that there only exists a single 0.
      For example, with jython:

      >>> int()
      0
      >>> int() is 0
      False
      

      it also doesn't help for identifying 0.0
      cpython 3.9:

      >>> float()
      0.0
      >>> float() is 0.0
      False
      

      The problem is that the kata does not specify what zero is, it does not say what to look for.

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

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

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

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

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

      It's unreadable because it's not marked up as code, and it doesn't say which language it is in, that's what's wrong with it.

      If you want support on your incorrect solution, help us help you. Did you read the Troubleshooting Guide?

    • Custom User Avatar
      • Say0nara
      • created a question for "Moving Zeros To The End" kata
      • 5 years ago

      def move_zeros(array):
      #your code here
      bos=[]
      zeros=[]
      for i in array:
      if i==0:
      zeros.append(i)
      else:
      bos.append(i)

        bos.extend(zeros)
        return bos
      

      whats wrong with this code?

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

      try i===0

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

      Don't mutate the array you're going through, that way you skip values.

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...