• 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
PetrSr Avatar
Name:Petr Srníček
Clan:Unknown
Member Since:Mar 2020
Last Seen:Jun 2021
Profiles:
Following:0
Followers:0
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (47)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • gazdean
    • commented on "Math Issues" javascript solution
    • 7 months ago

    'you don't have to consider things like undefined, null, NaN, negative numbers, strings and so on.'

    But as the Math object has been reset you shouldnt use Math.floor in the first method Math.round

  • Custom User Avatar
    • gazdean
    • commented on "Math Issues" javascript solution
    • 7 months ago

    .

  • Custom User Avatar
    • JohanWiltink
    • resolved an issue on "First non-repeating character" kata
    • 17 months ago

    Fixed and random cases with symbol characters are now tested. Closing.

  • Custom User Avatar
    • Twilight_Sun
    • commented on "Binary Simulation" kata
    • 4 years ago

    yes, but in JS it is definitely harder now than in Python.

  • Custom User Avatar
    • lilsweetcaligula
    • commented on "Unary Messages" javascript solution
    • 4 years ago

    Good solution! It could use a little refactoring, but other than that - it's concise but not concise to the point of unintelligible.

  • Custom User Avatar
    • deadlymouse1
    • commented on "Most frequently used words in a text" kata
    • 5 years ago

    Yes

  • Custom User Avatar
    • PetrSr
    • commented on "Math Issues" javascript solution
    • 5 years ago

    This does not work correctly for negative numbers.

    Standard Math object: Math.floor(-1.1) === -2

    This implementation: Math.floor(-1.1) === -1

  • Custom User Avatar
    • doooom
    • resolved a question on "Four Color Theorem (Easy Version)" kata
    • 5 years ago

    You are correct. I made mistakes. Just fixed them.
    They did not change results. So no one noticed.
    Thank you very much!

  • Custom User Avatar
    • PetrSr
    • commented on "Four Color Theorem (Easy Version)" kata
    • 5 years ago

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

  • Custom User Avatar
    • doooom
    • commented on "Four Color Theorem (Easy Version)" kata
    • 5 years ago

    If my testcode run correctly there should not be things like ABA. I modified the testcode from another kata I made which may have certain disconnected cases. Maybe I missed something. Did you see this type of disconnected areas in the tests?

    Thank you so much for pointing out the typo. I corrected it.

  • Custom User Avatar
    • PetrSr
    • created a question for "Four Color Theorem (Easy Version)" kata
    • 5 years ago

    If there are two disconnected areas with the same letter, are they considered one territory or two distinct territories?
    Consider for example the string ABA. Do the two As form two separate territories or one discontinuous territory?

    Also please note that there is a typo in the description. "chese board" > "chessboard".

  • Custom User Avatar
    • anter69
    • resolved an issue on "Real Password Cracker" kata
    • 5 years ago

    Not an issue, but a suggestion. Anyway, I removed that test, as there were other complaints earlier about it.

  • Custom User Avatar
    • PetrSr
    • created an issue for "Real Password Cracker" kata
    • 5 years ago

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

  • Custom User Avatar
    • ZED.CWT
    • commented on "ZED.CWT's JavaScript solution for "Crack the PIN"" kumite
    • 5 years ago

    Yup, you got it right o_O

  • Custom User Avatar
    • PetrSr
    • commented on "Crack the PIN" javascript solution
    • 5 years ago

    I created a fork with verbose comments to explain what is going on in this solution.
    I hope I got it right...

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...