• 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
MacStan Avatar
Name:Unknown
Clan:Gdansk University of Technology
Member Since:May 2017
Last Seen:Feb 2025
Profiles:
    Following:32
    Followers:32
    Allies:31
    View Profile Badges
    Ad
    Educator, struggling to assess your students?
    Assess your classroom or bootcamp with the world leading assessment platform, Qualified.Request your demo today!
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (49)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • trashy_incel
      • created a suggestion for "Extract bits from integer" kata
      • 7 months ago

      C translation

    • Custom User Avatar
      • MacStan
      • resolved an issue on "First Normal Form" kata
      • 9 months ago

      Thanks! Updated the description.

    • Custom User Avatar
      • Krillan
      • created an issue for "First Normal Form" kata
      • 9 months ago

      Error in table description

      stars | string

      but integer is assumed

    • Custom User Avatar
      • MacStan
      • resolved an issue on "Extract bits from integer" kata
      • 2 years ago

      Thanks, fixed.

    • Custom User Avatar
      • MacStan
      • resolved an issue on "Extract bits from integer" kata
      • 2 years ago

      It can be easily done without exceeding BigInt size. I don't think randomising the length increases the complexity in any way - it's still just one check.
      I have added an explicit max length of input data(64 bits) to simplify things. Sadly, I don't see any way to easily get the max value of BigInt so this will have to do.

    • Custom User Avatar
      • akar-0
      • created an issue for "Extract bits from integer" kata
      • 2 years ago

      JS: it doesn't make much sense to have a single fixed test where calculations may exceed the maximum BigInt size. Easy to hardcode (see my solution). Either make random tests generate such occurences, but that would make the kata significatively harder compared with other languages, or just remove it.

    • Custom User Avatar
      • akar-0
      • created an issue for "Extract bits from integer" kata
      • 2 years ago

      Javascript: export in initial code makes the program crash.

    • Custom User Avatar
      • MacStan
      • resolved an issue on "Extract bits from integer" kata
      • 2 years ago

      Thanks for the comment, I've updated the tests.
      I've left full length and partial length as they were. 'partial length' means some bits may be trimmed from most significant bit's side, 'full length' means no bits trimmed.

    • Custom User Avatar
      • mauro-1
      • created a suggestion for "Extract bits from integer" kata
      • 2 years ago

      Decimal offsets are more readable than hexadecimal ones.

    • Custom User Avatar
      • mauro-1
      • created an issue for "Extract bits from integer" kata
      • 2 years ago

      [Python]

      • In python "full length" and "partial length" don't make sense, "offet with sign bit set" is simply 4026531840 (without sign bit).

      • Tests import solution but use extract_bit. Use either import solution / solution.extract_bits or from solution import extract_bits / extract_bits.

      • No random tests.

    • Custom User Avatar
      • IlyaMashin
      • commented on "First Normal Form" kata
      • 2 years ago

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

    • Custom User Avatar
      • maks1394
      • commented on "Organize a Round-robin tournament" kata
      • 2 years ago

      I solved this kata, but can anyone tell me what theorems from mathematics or algorithms will help to solve this problem more efficiently?

    • Custom User Avatar
      • mipnorip
      • commented on "Organize a Round-robin tournament" kata
      • 2 years ago

      ++

    • Custom User Avatar
      • MacStan
      • commented on "Organize a Round-robin tournament" kata
      • 2 years ago

      Helper method makes debugging much nicer. Great kata!

    • Custom User Avatar
      • MacStan
      • resolved an issue on "Round Robin Job Scheduler" kata
      • 2 years ago

      Thanks, I've updated the description.

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...