An open API service indexing awesome lists of open source software.

https://github.com/yous/algospot

Solutions of https://algospot.com
https://github.com/yous/algospot

Last synced: 2 months ago
JSON representation

Solutions of https://algospot.com

Awesome Lists containing this project

README

        

# ALGOSPOT

[![Build Status](https://travis-ci.org/yous/algospot.svg?branch=master)](https://travis-ci.org/yous/algospot)

Solutions of .

## Requirements

Ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]

## Solving problems

To look into each problem, find it in . For example, you can see the problem 'MISPELL' at .

Use `rake new_problem[TITLE]` to create `spec/title_spec.rb`. It gets the example input and output like this:

``` sh
$ rake new_problem[mispell]
Enter the input: 4
4 MISSPELL
1 PROGRAMMING
7 CONTEST
3 BALLOON

Enter the output: 1 MISPELL
2 ROGRAMMING
3 CONTES
4 BALOON

Creating new spec file: spec/mispell_spec.rb
```

Then the content of `spec/mispell_spec.rb` will be:

``` ruby
RSpec.describe 'MISPELL', :mocked_stdout do
subject { 'mispell' }
let(:input) { <