Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
giusepped committed Nov 27, 2015
1 parent 9314987 commit 6b71b76
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
### Palindrome numbers counter
## Palindrome numbers counter

*This is a small Ruby app that can be used in the console in order to count the palindrome numbers in a range.
* This is a small Ruby app that can be used in the console in order to count the palindrome numbers in a range.

*The range of number is given in a text file (the first two lines represent the starting and the ending numbers of the range respectively)
* The range of number is given in a text file (the first two lines represent the starting and the ending numbers of the range respectively)

## Installation
#### Running the application

In your terminal do the following

Expand All @@ -14,7 +14,7 @@ $ cd palindrome numbers
$ ruby counter.rb
```

## Test
#### Test

In order to run the Rspec tests (there are 5 tests that test the same range numbers that are in the test files and one other), do the following

Expand All @@ -24,7 +24,7 @@ $ rspec

## Approach

I created an external class that does the counting in a range. I have to methods for checking wether a number (once converted into a string) is a palindrome:
I created an external class that does the counting in a range. I have two methods for checking if a number (once converted into a string) is a palindrome:
* the first one uses the reverse ruby in-built method
* the second one uses recursion

Expand Down

0 comments on commit 6b71b76

Please sign in to comment.