There are a lot of kata on codewars that are terrible.
8 kyu is the easiest and 1kyu is the hardest.
Here is a list of some the good ones: (This is not a complete list, and eventually there will be more than one for each level.)
function insert_point( $road, $point ) | |
{ | |
// add 7 hours to the time so we're in the right timezone. | |
// you'll need to change this to match your timezone. | |
$seven_hours = 7 * 60 * 60; | |
$point[0] = $point[0] + $seven_hours; | |
// Find the right place to put it | |
$index = find_right_place( $road, $point[0] ); | |
array_splice( $road, $index, 0, array($point) ); |
testing something. |
# Guardfile to run Exercism Ruby tests. | |
# gem install guard | |
# gem install guard-shell | |
# Run with 'guard' command from your base exercism directory. | |
interactor :off | |
guard :shell do |
> User.all.reject { |user| user.track_mentor.empty? }.map { |user| [user.username, user.track_mentor] } | |
=> [["diana", ["python"]], | |
["bob", ["ruby", "haskell"]], | |
["charlie", ["javascript", "erlang", "elixir"]], | |
["alice", | |
["clojure", | |
"coffeescript", | |
"elixir", | |
"go", | |
"haskell", |
# https://www.codewars.com/kata/the-builder-of-things/ruby | |
# https://www.codewars.com/kata/reviews/5571e09a385f59d95f000063/groups/59426d64e6049310a70006ce | |
# imported to handle any plural/singular conversions | |
require 'active_support/core_ext/string' | |
class Thing | |
def initialize(name) | |
@properties = {} | |
is_the.name.send(name) |
eval$Quine=%q($><<"eval$Quine=%q(#$Quine)\n\n#rubyconf - @mametter's talk blew | |
my mind! :boom:\n") | |
#rubyconf - @mametter's talk blew my mind! :boom: |
# frozen_string_literal: true | |
require 'minitest/autorun' | |
require_relative 'input_data' | |
class InputData | |
@file = __FILE__ | |
def parse | |
raw_data.lines.map { |line| line.scan(/\d/) } | |
end |