• 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
CheeSenTan Avatar
Name:Unknown
Clan:Unknown
Member Since:Jan 2021
Last Seen:Apr 2023
Profiles:
    Following:0
    Followers:0
    Allies:0
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (60)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • ahmet_popaj
      • commented on "Sum and Product of Three Numbers" kata
      • 9 months ago

      Very nice kata to solve, pretty better using a mathematical approach sometimes.

    • Custom User Avatar
      • JohanWiltink
      • resolved a suggestion on "Expressing Integers as Sum of Powers of Three" kata
      • 12 months ago

      Looks good! ( not that I really know Lua, but it's quite readable :)

    • Custom User Avatar
      • metatable
      • created a suggestion for "Expressing Integers as Sum of Powers of Three" kata
      • 12 months ago

      Lua translation!

    • Custom User Avatar
      • rowcased
      • created a suggestion for "Evaluating Continued Fractions" kata
      • 13 months ago

      C Translation (author inactive).

    • Custom User Avatar
      • Yushi.py
      • commented on "Evaluating Continued Fractions" kata
      • 16 months ago

      Who voted 4kyu on this, lol

    • Custom User Avatar
      • Ruslan-dev-Free-Fire
      • created a suggestion for "Sum and Product of Three Numbers" kata
      • 2 years ago

      It would be worthwhile to include handling of edge cases at the beginning of the solution. You need to make sure that the function handles edge cases correctly, such as when a or b is 1.

      An example of handling edge cases:

      def number_of_sets(a, b):

      if a == 1 and b == 1:
      
          return 1 # Case (1, 1, 1) satisfies the conditions
      
    • Custom User Avatar
      • user6792070
      • resolved an issue on "Expressing Integers as Sum of Powers of Three" kata
      • 2 years ago

      Nevermind. I just had to replace "BigInt(Math.pow(3, n))" with "3n ** n"

    • Custom User Avatar
      • user6792070
      • created an issue for "Expressing Integers as Sum of Powers of Three" kata
      • 2 years ago

      For JS, for the big random test, I get it wrong, yet when I go to check if the sum of powers of three is equal to n, it says it is. So how did I get it wrong while at the same time getting the sum correct? Am I just missing something? Also this is one of the test I failed:

      n = 233704777590876905525308351295: expected '0-0--++-+0++00-0-+0-0-0+-00--0+0+--++…' to equal '-+00-+++00+0-+-0+++-000-++++-0+0+--++…'

    • Custom User Avatar
      • JohanWiltink
      • commented on "Expressing Integers as Sum of Powers of Three" kata
      • 2 years ago

      Fixed now.

    • Custom User Avatar
      • JohanWiltink
      • resolved an issue on "Expressing Integers as Sum of Powers of Three" kata
      • 2 years ago

      Yep

    • Custom User Avatar
      • monadius
      • commented on "Expressing Integers as Sum of Powers of Three" kata
      • 2 years ago

      Should be fixed.

    • Custom User Avatar
      • dfhwze
      • commented on "Expressing Integers as Sum of Powers of Three" kata
      • 2 years ago

      I'm incapable of fixing this. I hope monadius can have a look at this.

    • Custom User Avatar
      • JohanWiltink
      • created an issue for "Expressing Integers as Sum of Powers of Three" kata
      • 2 years ago

      ( JS )

      Reference solution is wrong.

    • Custom User Avatar
      • dfhwze
      • resolved a suggestion on "Expressing Integers as Sum of Powers of Three" kata
      • 2 years ago
    • Custom User Avatar
      • dfhwze
      • commented on "Expressing Integers as Sum of Powers of Three" kata
      • 2 years ago

      Actually, the JS ref sol was incorrect for negative numbers. Updated.

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...