• 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
perfectcoder Avatar
Name:Unknown
Clan:Unknown
Member Since:Nov 2016
Last Seen:Aug 2022
Profiles:
    Following:1
    Followers:1
    Allies:1
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (19)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • M.Nizami
      • commented on "Valid Parentheses" python solution
      • 3 years ago

      Lol. I did same thing

    • Custom User Avatar
      • gmos01
      • commented on "Valid Parentheses" python solution
      • 3 years ago

      return True if cnt == 0 else False
      is an anti-pattern. Should just be
      return cnt == 0

    • Custom User Avatar
      • trashy_incel
      • resolved an issue on "Base64 Encoding" kata
      • 3 years ago

      there is no padding for this kata

    • Custom User Avatar
      • HerrKeuner1948
      • commented on "Valid Parentheses" python solution
      • 3 years ago

      Last if statement can be part of elif block --> only validate if you have subtracted

    • Custom User Avatar
      • Insisted
      • commented on "Valid Parentheses" python solution
      • 3 years ago

      The dificulties could differ from one to the other language

    • Custom User Avatar
      • GlebKar
      • commented on "Valid Parentheses" python solution
      • 3 years ago

      I'm delighted with myself that I've finally written the same function as best practice example!
      But the Kata was too easy for 5kyu. Feels like 7kyu

    • Custom User Avatar
      • Denis2999
      • commented on "Valid Parentheses" python solution
      • 3 years ago

      I'm sure, it's best practice, cause it's easy to read and it doesn't use bad practices, like an example above.

    • Custom User Avatar
      • jun162620
      • commented on "Valid Parentheses" python solution
      • 4 years ago

      It is better to write return False than break.

    • Custom User Avatar
      • liamcs98
      • commented on "Valid Parentheses" python solution
      • 8 years ago

      Yep! Thats what I did. I do like the current top one more, but yaknow, it works.

    • Custom User Avatar
      • mentalplex
      • commented on "Valid Parentheses" python solution
      • 8 years ago

      i indicates an iteration in this case as well.
      for i in string:
      This is exactly what an iteration is. You iterate over an iterable. In this case that iterable is a string.

    • Custom User Avatar
      • matt c
      • resolved an issue on "SQL Basics: Simple WITH" kata
      • 9 years ago

      This type of anti-cheat is more than required and will end up being a waste of time because there's always a way around.

    • Custom User Avatar
      • user5701997
      • commented on "Valid Parentheses" python solution
      • 9 years ago

      good work!

      the use of "i" as a variable here might be troublesome -- it's not wrong necessarily, but in most cases, "i" is used in Python to indicate an iteration or count, as in the example:

      for i, item in enumerate(some_iterable)

    • Custom User Avatar
      • perfectcoder
      • created an issue for "SQL Basics: Simple WITH" kata
      • 9 years ago

      There is an issue with Test Cases.
      The following code is wrong but it is able to bypass the test cases:

      -- IN WHERE WITH SPECIAL_SALES
      SELECT DISTINCT d.* FROM departments d, sales s WHERE d.id = s.department_id and s.price > 90 ORDER BY d.id;

      I suggest to remove SQL comments before checking the code.

    • Custom User Avatar
      • maurelio1234
      • resolved an issue on "SQL Basics: Simple VIEW" kata
      • 9 years ago

      This was an issue with SQL katas that's been fixed a couple of hours ago. Try again.

    • Custom User Avatar
      • jamese03
      • commented on "SQL Basics: Simple VIEW" kata
      • 9 years ago

      i've seen this issue on multiple tests with the correct results.

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...