• 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
michal8888 Avatar
Name:Unknown
Clan:Unknown
Member Since:Jun 2017
Last Seen:Feb 2022
Profiles:
Following:5
Followers:1
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (23)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • michal8888
    • commented on "Rainfall" kata
    • 8 years ago

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

  • Custom User Avatar
    • ITSOES
    • commented on "Simple Encryption #1 - Alternating Split" ruby solution
    • 8 years ago

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

  • Custom User Avatar
    • michal8888
    • commented on "Word a10n (abbreviation)" ruby solution
    • 8 years ago

    Great solution, but \w would match digits and underscore. Per description "word" is a sequence of alphabetical characters.

  • Custom User Avatar
    • michal8888
    • commented on "Is a number prime?" ruby solution
    • 8 years ago

    Prime numbers are natural numbers greater than 1 (kata's description even mentions that), so there's no need to check divisors of negative numbers, just return false.

  • Custom User Avatar
    • michal8888
    • commented on "Is a number prime?" ruby solution
    • 8 years ago

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

  • Custom User Avatar
    • michal8888
    • commented on "longest_palindrome" ruby solution
    • 8 years ago

    Loved your solution!

    Other upvoted solutions are slow as hell and yours is even faster than mine.

    Kudos!

  • Custom User Avatar
    • michal8888
    • commented on "Delete occurrences of an element if it occurs more than n times" ruby solution
    • 8 years ago

    Only problem for me is that method .delete_if mutates the caller.
    Value of "order" was changed. Method .reject would suit me be better in this case.

    Nevertheless great solution!

  • Custom User Avatar
    • michal8888
    • commented on "Simple Encryption #1 - Alternating Split" ruby solution
    • 8 years ago

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

  • Custom User Avatar
    • michal8888
    • commented on "Take a Number And Sum Its Digits Raised To The Consecutive Powers And ....¡Eureka!!" ruby solution
    • 8 years ago

    It's an offset. It sets starting value of the index (default is 0).

    https://ruby-doc.org/core-2.4.1/Enumerator.html#method-i-with_index

  • Custom User Avatar
    • michal8888
    • commented on "Format a string of names like 'Bart, Lisa & Maggie'." ruby solution
    • 8 years ago

    Clever solution!
    Though if you'd use single quotes in a gsub/sub, you wouldn't have to escape first reference twice, just once.

  • Custom User Avatar
    • Blind4Basics
    • commented on "Sushi-go-round (Beginner's)" ruby solution
    • 8 years ago

    yes.

  • Custom User Avatar
    • Chris_Rands
    • commented on "Sushi-go-round (Beginner's)" ruby solution
    • 8 years ago

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

  • Custom User Avatar
    • EOSullivanBerlin
    • commented on "Sushi-go-round (Beginner's)" ruby solution
    • 8 years ago

    The code is legable and as a result maintainable.

  • Custom User Avatar
    • Chris_Rands
    • commented on "Sushi-go-round (Beginner's)" ruby solution
    • 8 years ago

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

  • Custom User Avatar
    • michal8888
    • commented on "Alphabet wars - nuclear strike" kata
    • 8 years ago

    Great kata!

    Though, I'd change method name in Ruby translation to snake case.

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...