Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

The Project Odin - Course Ruby

Project: Sub Strings

Objective: Implement a method that takes a word as the first argument and then an array of valid substrings (your dictionary) as the second argument. It should return a hash listing each substring (case insensitive) that was found in the original string and how many times it was found.

Example:

  > dictionary = ["below","down","go","going","horn","how","howdy","it","i","low","own","part","partner","sit"]
  => ["below","down","go","going","horn","how","howdy","it","i","low","own","part","partner","sit"]
  > substrings("below", dictionary)
  => { "below" => 1, "low" => 1 }

About

Descrição da atividade: Implementar um metodo que receba dois argumentos, uma string e um array contendo varias strings. Deve verificar se nesse array existe algum elemento que é subtring do primeiro argumento e quantas vezes aparece

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages