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
- Host: GitHub
- URL: https://github.com/yous/algospot
- Owner: yous
- Created: 2015-01-16T17:20:37.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-13T22:35:45.000Z (over 10 years ago)
- Last Synced: 2025-02-10T21:19:08.263Z (4 months ago)
- Language: Ruby
- Size: 223 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ALGOSPOT
[](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 BALLOONEnter the output: 1 MISPELL
2 ROGRAMMING
3 CONTES
4 BALOONCreating 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) { <