• 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
ansis m Avatar
Name:Ansis Maleckis
Clan:Unknown
Member Since:May 2021
Last Seen:Oct 2024
Profiles:
    Following:1
    Followers:4
    Allies:1
    View Profile Badges
    Ad
    8 Reasons Why Codewarriors Practice Coding with Codewars
    Not everyone trains the same. Discover new ways to leverage Codewars in your education and career.
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (141)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • MohamedSayed0573
      • commented on "Reversed Strings" cpp solution
      • 25 days ago

      That's only because he removed const from the function signature.

    • Custom User Avatar
      • ansis m
      • commented on "Parse a linked list from a string" kata
      • 9 months ago

      you can just call constructor recursively for one-liner

    • Custom User Avatar
      • trashy_incel
      • resolved a question on "Data Reverse" kata
      • 10 months ago

      the input is an array of bits, so int would waste memory. bool would have been a better fit for this precise kata, yes, but unsigned char is the standard datatype for working with binary data (because it is byte-sized and because it avoids the usual caveats of bitwise operators with signed numbers)

    • Custom User Avatar
      • gryan
      • commented on "Fabergé Easter Eggs crush test" kata
      • 14 months ago

      Respectable approach for sure, but I still feel that being able to prove the answer is what you suspect it to be is also a pretty important skill (not sure if that's what you meant or not).

    • Custom User Avatar
      • dbtx
      • commented on "Primorial Of a Number " c solution
      • 2 years ago

      The real abomination is modern website and OS design and planned obsolescence enacted through willful anti-efficiency. But the 17th ret*=59; overflows unsigned long long anyway. I simply precomputed the final answers, and 24 was still overkill, and now I can see that the last third of even those few are simply wrong.

    • Custom User Avatar
      • dfhwze
      • commented on "Partition Detection" kata
      • 2 years ago

      Excellent kata, approved at average vote of kyu 2!

    • Custom User Avatar
      • ansis m
      • commented on "Simple Fun #159: Middle Permutation" kata
      • 4 years ago

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

    • Custom User Avatar
      • g964
      • resolved an issue on "Rainfall" kata
      • 4 years ago

      Could it be that the Shell tests are broken???

      Please when you post a question, don't post an issue... but a question.

      when in fact there is a valid input.

      Can you give some example: input town + result of the test.
      30 people passed the Shell kata so I am quite sure that tests are not broken.

    • Custom User Avatar
      • ansis m
      • created an issue for "Rainfall" kata
      • 4 years ago

      Could it be that the Shell tests are broken??? It is difficult to debug in Shell but from my side it really looks that in several cases the test expects -1 when in fact there is a valid input.

    • Custom User Avatar
      • ansis m
      • commented on "Sum of angles" shell solution
      • 4 years ago

      I think you missed a couple of braces

    • Custom User Avatar
      • ansis m
      • commented on "Car Park Escape" kata
      • 4 years ago

      Nice kata! Would be cool if author made a 4kyu or 3kyu version where every floor is 2D. Another cool option would be to add several stairs at each floor - finding a shortest route would be a quite challenging 3kyu kata.

    • Custom User Avatar
      • akar-0
      • commented on "Number of players for knockout/round-robin hybrid contest (easy mode)" cpp solution
      • 4 years ago

      Please use spoiler flag next time. Your comment is visible from the dashboard.

    • Custom User Avatar
      • ansis m
      • commented on "Number of players for knockout/round-robin hybrid contest (easy mode)" cpp solution
      • 4 years ago

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

    • Custom User Avatar
      • FArekkusu
      • commented on "Number of players for knockout/round-robin hybrid contest (easy mode)" cpp solution
      • 4 years ago

      Manual notification.

    • Custom User Avatar
      • ansis m
      • commented on "Number of players for knockout/round-robin hybrid contest (easy mode)" cpp solution
      • 4 years ago

      Voted clever because I have no idea whats going on. Some comments or explanation would be nice though.

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...