• 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
Len512 Avatar
Name:Len512
Clan:Night Watch
Skills:wisdom comes from experience. experience is often a result of lack of wisdom.
Member Since:Oct 2017
Last Seen:Mar 2025
Profiles:
Following:21
Followers:64
Allies:16
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (312)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • tobeannouncd
    • commented on "simple calculator " python solution
    • 3 months ago

    This solution relies on operators throwing a TypeError to check if the arguments are numbers. Deferring calculation using lambda functions would result in calculator('a','b','+') incorrectly returning "ab" instead of "unknown value".

    That being said, inputs like calculator(3,0,'+') would result in a ZeroDivisionError being thrown instead of the correct answer of 3.

  • Custom User Avatar
    • hinsley
    • commented on "simple calculator " python solution
    • 3 months ago

    You should use lambda functions as the values in the dict so you don't precalculate all 4 ops.

  • Custom User Avatar
    • Philkar
    • commented on "Simple beads count" python solution
    • 4 months ago

    Alr, could've probably guessed that but being more sure is always nice. Thx :D

  • Custom User Avatar
    • SummerTheCoder
    • commented on "Simple beads count" python solution
    • 4 months ago

    One-time math calculations are normally O(1), although it depends on how they are implemented.

  • Custom User Avatar
    • encrypted-oreo
    • commented on "simple calculator " python solution
    • 6 months ago

    bruh what

  • Custom User Avatar
    • saudiGuy
    • resolved a question on "Integer Right Triangles" kata
    • 10 months ago

    .

  • Custom User Avatar
    • dfhwze
    • commented on "Sum of dices" python solution
    • 13 months ago

    top solution got invalidated after spec update

  • Custom User Avatar
    • EugeneMazurok
    • commented on "Disemvowel Trolls" swift solution
    • 17 months ago

    красава просто лучший

  • Custom User Avatar
    • Samarth-Pai
    • commented on "Find the calculation type" python solution
    • 17 months ago

    it's already mentioned that only valid arguements will be passed

  • Custom User Avatar
    • Adrian Cortez
    • commented on "Common array elements" python solution
    • 2 years ago

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

  • Custom User Avatar
    • mmmvvppkgd
    • commented on "Disemvowel Trolls" swift solution
    • 2 years ago

    Вот небольшое пояснение:

    "[aeiou]": Это регулярное выражение, которое соответствует любой гласной букве (в нижнем или верхнем регистре).
    "": Это строка, на которую будет заменена каждая найденная гласная буква, то есть на пустую строку.
    options: [.regularExpression, .caseInsensitive]: Эти опции указывают, что мы используем регулярное выражение (.regularExpression) и игнорируем регистр (.caseInsensitive), чтобы учесть гласные в любом регистре.

  • Custom User Avatar
    • Viktor.startsWith_Z
    • commented on "Capitalization and Mutability" javascript solution
    • 2 years ago

    I think this is the best practice because we replace the rest of the letters with lowerCase

  • Custom User Avatar
    • DominicYonce22
    • commented on "Quarter of the year" javascript solution
    • 2 years ago

    freaking genius

  • Custom User Avatar
    • goldenratio161
    • commented on "The Modulo-3 Sequence" python solution
    • 2 years ago

    1 at the end is redundant

  • Custom User Avatar
    • Voilet
    • commented on "Binary Pyramid 101" python solution
    • 2 years ago

    sweet

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...