March 25, 2014
- No purchase necessary
- Must be present to win.
- Team must consist of two people or fewer.
- Prizes will be awarded based on an objective "correctness" score and a subjective "style" score.
- No external libraries, only what is available in Ruby core and stdlib
- Each team will have 45 minutes to complete as many challenges as possible.
For each team member:
- One (1) Fancy Oven Bits American Apparel Shirt (M, L, 2XL)
- One (1) $10 Amazon Gift Card
- Form a team of one or two
- Fork this repository on GitHub
- Commit your solution(s)
- Send a pull request
Prizes will be awarded based on an objective "correctness" score component and a subjective "style" score component. Each are out of 100 points and will be averaged to provide the final score.
Each problem is worth a total number of objective points. The points will be awarded during running test cases that have not been made publicly available during development.
The other participants will submit a style score between 1 and 100. The highest and lowest scores will be excluded from an average of all scores to provide the subjective component.
- Ruby 2.1.1 (can develop in other versions but will be tested against 2.1.1p76)
To run the test cases for each problem:
$ ruby spec/kata/KATA_NAME_spec.rb
Given a two-dimensional array, sort like this:
It should allow for differing lengths of sub-arrays, filling in nil
where there are no elements.
Return true
if the given string is a palindrome. It should be case-insensitive and ignore all
non-alphanumeric characters.
palindrome?("racecar") # => true
palindrome?("A man, a plan, a canal: PANAMA!") # => true
palindrome?("Snake achings") # => false
Add, subtract, multiply, and divide numbers between 1 and 20 using a method chaining technique like this:
Calc.new.twenty.plus.seven # => 27
Calc.new.seven.times.eight # => 56
Calc.new.three.minus.twelve # => -9