• 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
kevinthomas Avatar
Name:Kevin Thomas
Clan:Tigerspike
Skills:ruby, php, html, css, javascript, regex, objective-c, mysql, mongodb
Member Since:Apr 2015
Last Seen:Apr 2024
Profiles:
Following:16
Followers:20
Allies:15
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (24)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • Baracoding
    • commented on "Exclamation marks series #5: Remove all exclamation marks from the end of words" javascript solution
    • 14 months ago

    nice solution

  • Custom User Avatar
    • Tom H. Lautenbacher
    • commented on "String repeat" ruby solution
    • 3 years ago

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

  • Custom User Avatar
    • Chrono79
    • commented on "The highest profit wins!" javascript solution
    • 3 years ago

    Use spoiler flag next time please.

  • Custom User Avatar
    • IlyaHasBeenCreated
    • commented on "The highest profit wins!" javascript solution
    • 3 years ago

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

  • Custom User Avatar
    • sonovagibs
    • commented on "String repeat" ruby solution
    • 5 years ago

    As an example:
    You can have 10 instances of "Apple"
    You cannot have "Apple" instances of 10

    Basically * is a method, which has to take in a number. It cannot perform it's function with a string.

  • Custom User Avatar
    • Cory1802
    • commented on "The highest profit wins!" javascript solution
    • 5 years ago

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

  • Custom User Avatar
    • zucaritask
    • commented on "Find the stray number" ruby solution
    • 6 years ago

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

  • Custom User Avatar
    • hahl
    • commented on "String repeat" ruby solution
    • 6 years ago

    Thank you, phaul, for the explanation, that is very interesting!

  • Custom User Avatar
    • anter69
    • commented on ""Filter out the geese" Ruby Translation"
    • 7 years ago

    Thanks, approved!

  • Custom User Avatar
    • cliffstamp
    • commented on ""Filter out the geese" Ruby Translation"
    • 7 years ago

    He is gone, forked.

  • Custom User Avatar
    • nick3499
    • commented on "String repeat" ruby solution
    • 7 years ago

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

  • Custom User Avatar
    • anter69
    • commented on ""Filter out the geese" Ruby Translation"
    • 7 years ago

    Feel like updateing/resubmitting? Description was changed in the meantime...

  • Custom User Avatar
    • deepwhitelake
    • commented on "String repeat" ruby solution
    • 8 years ago

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

  • Custom User Avatar
    • ITSOES
    • commented on ""Reverse Letters in Sentence " Ruby Translation"
    • 9 years ago

    Previous translation didn't reverse words in place, but instead trimmed spaces.

  • Custom User Avatar
    • user5036852
    • commented on ""Replace every nth" Ruby Translation"
    • 9 years ago

    Better, but still different.

    What about this?

    for(var i=0;i<len;i++) {
            switch(Math.floor(Math.random() * 10))
            {
              case 0: text += oldValue; break;
              case 1: text += " "; break;
              default: text += String.fromCharCode(Math.floor(Math.random() * 26) + 97);          
            }
          }
    

    And the random-values are also different.
    -> Math.floor(Math.random() * 7) -1; gives a result from -1 to 5 and not from 1 to 6

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...