• 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
turtelian Avatar
Name:Unknown
Clan:Unknown
Member Since:Nov 2017
Last Seen:Dec 2024
Profiles:
    Following:0
    Followers:0
    Allies:0
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (20)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • Chrono79
      • commented on "Remove the minimum" kata
      • 5 years ago

      Your code mutates the input. The kata description says you shouldn't.

    • Custom User Avatar
      • turtelian
      • commented on "Simple string matching" kata
      • 5 years ago

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

    • Custom User Avatar
      • B1ts
      • commented on "Simple string matching" kata
      • 5 years ago

      l=a.split('')

      ValueError: empty separator

      Also, I have no idea what you second if statement is about.

      Your whole approach seems to be prone to errors, I'd actually recommend coming back to this one after solving more katas first. Also, when you post code, use proper code formatting, and read this troubleshooting FAQ first.

    • Custom User Avatar
      • turtelian
      • commented on "Simple string matching" kata
      • 5 years ago

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

    • Custom User Avatar
      • B1ts
      • commented on "Simple string matching" kata
      • 5 years ago

      Literally the first example...

      solve("code*s","codewars") = true, because we can replace the asterix(*) with "war" to match the second string.

      Your code would return False. Your code just removes the asterisk, but it can be replaced with any other string to match the strings, if possible.

    • Custom User Avatar
      • turtelian
      • commented on "Simple string matching" kata
      • 5 years ago

      "You will be given two strings a and b consisting of lower case letters, but a will have at most one asterix character. The asterix (if any) can be replaced with an arbitrary sequence (possibly empty) of lowercase letters. No other character of string a can be replaced. If it is possible to replace the asterix in a to obtain string b, then string b matches the pattern."
      For me ut is simple as that.
      Can you give me any example when my sollution is wrong ?

    • Custom User Avatar
      • B1ts
      • commented on "Simple string matching" kata
      • 5 years ago

      Your solution isn't complete. For example, try adding this test case:

      Test.assert_equals(solve("code*code","codewars"), False)

      Your solution would return True, when it's clearly wrong.

    • Custom User Avatar
      • B1ts
      • commented on "Simple string matching" kata
      • 5 years ago

      Your solution is incorrect, the task isn't so simple. Read the description again, especially the first example. Also, add spoiler flag next time plz.

    • Custom User Avatar
      • turtelian
      • commented on "Simple string matching" kata
      • 5 years ago

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

    • Custom User Avatar
      • turtelian
      • commented on "Remove the minimum" kata
      • 5 years ago

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

    • Custom User Avatar
      • Tokariev Serhii
      • commented on "Life without primes" kata
      • 8 years ago

      Because 2 is a prime

    • Custom User Avatar
      • lagarto
      • commented on "Life without primes" kata
      • 8 years ago

      why isnt 12 in the array ? is not a prime..

    • Custom User Avatar
      • turtelian
      • commented on "Find out whether the shape is a cube" javascript solution
      • 8 years ago

      0 will return true this is a issue here ;)

    • Custom User Avatar
      • turtelian
      • commented on "Life without primes" kata
      • 8 years ago

      yes it is
      https://primes.utm.edu/lists/small/10000.txt

      My bad sorry;

    • Custom User Avatar
      • KenKamau
      • commented on "Life without primes" kata
      • 8 years ago

      Is 19 a prime?

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...