• 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
SimpleMRish Avatar
Name:Unknown
Clan:Unknown
Member Since:Mar 2023
Last Seen:Mar 2025
Profiles:
    Following:0
    Followers:1
    Allies:0
    View Profile Badges
    Ad
    How many Kata did you complete in 2024?
    Discover our top moments in 2024 and how you can level up in 2025.
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (53)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • SimpleMRish
      • commented on "Basics 06: Reversing and Combining Text" python solution
      • 3 months ago

      awesome solution!

    • Custom User Avatar
      • SimpleMRish
      • commented on "Group Anagrams" python solution
      • 3 months ago

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

    • Custom User Avatar
      • SimpleMRish
      • commented on "Determine the date by the day number" python solution
      • 4 months ago

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

    • Custom User Avatar
      • SimpleMRish
      • commented on "Simple Fun #305: Typist" python solution
      • 4 months ago

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

    • Custom User Avatar
      • SimpleMRish
      • commented on "The Lamp: Revisited" python solution
      • 4 months ago

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

    • Custom User Avatar
      • SimpleMRish
      • commented on "A String of Sorts" python solution
      • 4 months ago

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

    • Custom User Avatar
      • SimpleMRish
      • commented on "Find Cracker." python solution
      • 5 months ago

      Yeah, that combination is really best! Thank you for the update :)

    • Custom User Avatar
      • Blind4Basics
      • commented on "Find Cracker." python solution
      • 5 months ago

      Yes and no.

      • You're right about readability.
      • Mine has actually a slightly better genericity/logical setup.

      So in the end, the actual best practice would be to combine both approaches.

    • Custom User Avatar
      • SimpleMRish
      • commented on "Find Cracker." python solution
      • 5 months ago

      This solution maybe clever, but as for me it's unreadable.
      PEP8 recommended max line length is 79.
      So I think it shouldn't be considered as best practice.
      Check the solution from @bidouille. I liked it.

    • Custom User Avatar
      • SimpleMRish
      • commented on "FIXME: Hello" python solution
      • 5 months ago

      Really nice solution. However truncating hello to hell makes it weird

    • Custom User Avatar
      • SimpleMRish
      • commented on "Linked Lists - Insert Nth Node" python solution
      • 5 months ago

      got it. Thank you @Azuaron for explanation!

    • Custom User Avatar
      • Azuaron
      • commented on "Linked Lists - Insert Nth Node" python solution
      • 5 months ago

      It doesn't recreate the whole list. It recurses through the list until it finds the correct index, then inserts the new Node at that location. If you're referring to head.next = insert_nth(head.next, index - 1, data), that doesn't "recreate" anything, it just sets the new assignment which, in most cases, is the same as the old assignment.

      If the linked list contains that many elements, then this function will fail. However, lists of that size were not part of this kata. That being said, if I wrote this again, I'd make it tail recursive, and then the list size would not be limited by the stack size.

    • Custom User Avatar
      • SimpleMRish
      • commented on "Sortable Shapes" python solution
      • 5 months ago

      nice Square subclassing :)

    • Custom User Avatar
      • SimpleMRish
      • commented on "Catalog" python solution
      • 5 months ago

      I like BeautifulSoup better

    • Custom User Avatar
      • SimpleMRish
      • commented on "Linked Lists - Insert Nth Node" python solution
      • 5 months ago

      Could anyone explain why this solution is 'Best Practice'?
      Looks like we conplitely recreate whole list here instead of adding the needed element into the index position.
      What if the linked list contains 1500 elements? Won't we get the RecursionError?

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...