• 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
Closure Avatar
Name:Unknown
Clan:Tianjin University
Member Since:Feb 2016
Last Seen:Dec 2021
Profiles:
    Following:20
    Followers:20
    Allies:20
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (5)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • Closure
      • commented on "Simple Pig Latin" kata
      • 4 years ago

      I would suggest the log template beingYou should 'pig' "{input_str}": '{output}' should equal '{expected}'

    • Custom User Avatar
      • Closure
      • commented on "Invert values" kata
      • 4 years ago

      You are missing a zero in the actual result, check if you if-else branch left that condition unhandled.

    • Custom User Avatar
      • Closure
      • commented on "Simple Fun #206: Factorial Digits" kata
      • 4 years ago

      Most likely it indicates that your code runs out of time, as the input n is in range [0, 10e6] and (10e6)! has more than 50e7 digits. Both computing n! (multiplying for big integer is expensive too) and extracting digits from n! by dividing 10 forms performance bottleneck.

    • Custom User Avatar
      • Closure
      • commented on "Can you get the loop ?" kata
      • 4 years ago

      See https://en.wikipedia.org/wiki/Node_(computer_science).

      As for "why don't we speak 'Node' much when using python", I would suggest u read a similar question on so, it answered my similar concern.

    • Custom User Avatar
      • Closure
      • commented on "Build a pile of Cubes" kata
      • 4 years ago

      The above recursion terminates at n+1 when sum (Σ(i^3) for i in [0, n+1)) equals m, returning n+1, which is not actually accumulated to sum.

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...