• 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
Peter4 Avatar
Name:Unknown
Clan:Uncolored
Member Since:Feb 2022
Last Seen:Apr 2024
Profiles:
    Following:6
    Followers:6
    Allies:6
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (21)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • Peter4
      • commented on "Regular expression parser" kata
      • 14 months ago

      It is too easy for 2 kyu, also i disagree with some terms, like a|t|y should be allowed in a real praxis, - it is Or(Normal(a), Normal(t), normal(y))
      Well, (ab)a should concatenate to aba, what is not issue in the test. good point here someone, a** should NOT be allowed only for users check, because it is kinda valid regex theoretically, empty regex should return Empty() token.

    • Custom User Avatar
      • Peter4
      • commented on "The Takeuchi function" kata
      • 14 months ago

      Try to do something more with this funtion like calculating it on very large scale where hashing is not working, because hashing is really trivial

    • Custom User Avatar
      • Peter4
      • commented on "Faberge easter eggs crush test [linear]" kata
      • 14 months ago

      Omg this is so hardcore.
      I needed to dig into really advanced math hacks.
      Finally i discovered good pure- math move to calculate this significally less then limited time - below 4 seconds, in Python and i am finally satisfied :D

    • Custom User Avatar
      • Peter4
      • commented on "Optimal Transportation" kata
      • 14 months ago

      Is it known transportation task problem with known solution, what does not work always,
      or else you may invent some approximate solution, but it will require longer time.
      Lets see :D

    • Custom User Avatar
      • Peter4
      • commented on "Evaluate mathematical expression" kata
      • 14 months ago

      Ok i just needed to rename all open_ variable. Ok i did it, you could delete it my comment

    • Custom User Avatar
      • Peter4
      • commented on "Evaluate mathematical expression" kata
      • 14 months ago

      oh yes i corrected it, sorry.
      now the tests are fine, but i have the issue You can't use open, open, open: ['open', 'open', 'open'] should equal []
      And i do not use open funciton

    • Custom User Avatar
      • Chrono79
      • commented on "Evaluate mathematical expression" kata
      • 14 months ago

      Operators are always evaluated from left-to-right

      10 - 2 = 8
      8 - -5 = 8 + 5 = 13
      
    • Custom User Avatar
      • Peter4
      • commented on "Evaluate mathematical expression" kata
      • 14 months ago

      First of all, one of the test is wrong,
      ("10- 2- -5", 13),
      should be equal to 3 : 10 - 7 and not 13

    • Custom User Avatar
      • Infuzibil
      • commented on "SQL: Regex Replace" sql solution
      • 3 years ago

      The 'g' arguments tells the function to replace all occurences, not just the first one.

    • Custom User Avatar
      • Peter4
      • commented on "SQL: Regex Replace" sql solution
      • 3 years ago

      what is 'g' doing here, i have not found it in doku

    • Custom User Avatar
      • Peter4
      • commented on "SQL with LOTR: Elven Wildcards" sql solution
      • 3 years ago

      you do not capitalize the first character

    • Custom User Avatar
      • Peter4
      • commented on "SQL with Harry Potter: Sorting Hat Comparators" sql solution
      • 3 years ago

      ah so you have not concidered the different order of qualities :D

      also, is there any operator like any(quality1,quality2) ='evil' - this does not work with columns here

    • Custom User Avatar
      • jcsahnwaldt
      • commented on "Prime Streaming (PG-13)" kata
      • 3 years ago

      That's why the description says "If this is too easy, try Prime Streaming (NC-17)." :-)

    • Custom User Avatar
      • Peter4
      • commented on "Prime Streaming (PG-13)" kata
      • 3 years ago

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

    • Custom User Avatar
      • Peter4
      • commented on "Regular Expression - Check if divisible by 0b111 (7)" python solution
      • 3 years ago

      Too big, it is possible to make the pattern shorter

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...