https://github.com/jonathanyiv/substrings
Implementation of a String-Searching Algorithm in Ruby
https://github.com/jonathanyiv/substrings
ruby substrings
Last synced: 9 months ago
JSON representation
Implementation of a String-Searching Algorithm in Ruby
- Host: GitHub
- URL: https://github.com/jonathanyiv/substrings
- Owner: JonathanYiv
- Created: 2017-08-03T19:55:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-07T21:15:38.000Z (over 8 years ago)
- Last Synced: 2025-02-26T05:33:22.731Z (about 1 year ago)
- Topics: ruby, substrings
- Language: Ruby
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Substrings Project
This is my version of implementing a [string searching algorithm](https://en.wikipedia.org/wiki/String_searching_algorithm).
It is a method that takes a string as an argument and an array of valid substrings as the second argument.
It returns a hash listing each substring and how many times it was found (as keys and values respectively).
This is a project from [The Odin Project](https://www.theodinproject.com/courses/ruby-programming/lessons/building-blocks).
## Installation
Open your Terminal/Command Line. Navigate to the directory where your version will live. Type in the following:
```
$ git clone https://github.com/JonathanYiv/substrings.git
$ cd substrings
$ substrings.rb
```
## Pre-Project Thoughts
This should be relatively easy.
## Post-Project Thoughts
It was relatively easy.