• 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
Insti Avatar
Name:Geoff Hubbard
Clan:Hire me for remote work.
Skills:testing, ruby, php
Member Since:Mar 2015
Last Seen:Apr 2024
Profiles:
Following:6
Followers:41
Allies:5
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations
  • Replies
  • Authored (584)
  • Needs Resolution
  • Custom User Avatar
    • Insti
    • commented on "Number of People in the Bus" ruby solution
    • 15 months ago

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

  • Custom User Avatar
    • Insti
    • commented on "Math Issues" javascript solution
    • 4 years ago

    Math.floor is (re)implemented on the first line.

  • Custom User Avatar
    • Insti
    • commented on "Reversi row rudiments" kata
    • 4 years ago

    This does not happen very often so it's likely your code is failing for some other reason, can you give an example of a test case that is failing for you?
    Have you read the thread started by MariusAFT below?

    A simple example:
    (Note This before position is not possible to create with the rules we are using.)

    Before:
    ..O*O*..
    After a move to 1:
    .***O*..
    The flipping stops at the * piece at 3 and the O at 4 does not flip.

  • Custom User Avatar
    • Insti
    • commented on "Printer Errors" ruby solution
    • 5 years ago

    See my reply below

  • Custom User Avatar
    • Insti
    • commented on "Printer Errors" ruby solution
    • 5 years ago

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

  • Custom User Avatar
    • Insti
    • commented on "Get the mean of an array" elixir solution
    • 5 years ago

    Yes.

    https://hexdocs.pm/elixir/master/Kernel.html#length/1

  • Custom User Avatar
    • Insti
    • resolved an issue on "Reversi row rudiments" kata
    • 5 years ago

    Thanks, I think I've fixed it now.

  • Custom User Avatar
    • Insti
    • commented on "Digit-by-digit number" ruby solution
    • 5 years ago

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

  • Custom User Avatar
    • Insti
    • commented on "Highest Scoring Word" ruby solution
    • 5 years ago

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

  • Custom User Avatar
    • Insti
    • created an issue for "Every nth array element. (Advanced)" kata
    • 6 years ago

    The test failure messages should show the inputs that failed.

  • Custom User Avatar
    • Insti
    • commented on "Every nth array element. (Advanced)" kata
    • 6 years ago

    I've updated the description, hopefuly that is helpful.
    I'm not sure about the wording, suggestions for improvement are encouraged.

    But no wrapping

    When counting down from a positive index, stop when you are below zero. (This is different from Ruby's array indexing)

    Example:

    [0,1,2,3,4].every(-2,2)   # [2, 0]
    [0,1,2,3,4].every(-2,3)   # [3, 1]
    
  • Custom User Avatar
    • Insti
    • commented on "Every nth array element. (Advanced)" kata
    • 6 years ago

    This is similar to the example case:

    [0,1,2,3,4].every(-2) # [0]

    The answer you are getting is what happens if you let the array index become negative.
    You should ensure that you stop when you get to zero, and don't go negative.

    This does not appear to currently be explicitly documented though. I will clarify the description.

  • Custom User Avatar
    • Insti
    • commented on "Remove the minimum" ruby solution
    • 6 years ago

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

  • Custom User Avatar
    • Insti
    • commented on "C.Wars" ruby solution
    • 6 years ago

    This is a strange one, because the acceptance tests do not test for this.

    If you also want to capitalize the last word add this code to the end: .sub(/(\w+)$/,&:capitalize)

  • Custom User Avatar
    • Insti
    • commented on "Maximum subarray sum" ruby solution
    • 6 years ago

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

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...