Skip to content

B3v3/Ruby_code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby_code

  1. anagram_checker - Checking if words are anagrams and then storing anagrams in hash table
  2. bubble_sort - sorting using bubble sort
  3. caesar_cipher - encrypting string using Caesar's code
  4. longest_palidrome - searching for the longest palidrome in string
  5. monkeywritingmachine - how many times monkey need to click 4 random letters to write your word?
  6. stock_picker - takes in an array of stock prices, one for each hypothetical day, and return pair of days representing the best day to buy and the best day to sell
  7. substrings - takes a word as the first argument and then an array of valid substrings (your dictionary) as the second argument and retunr the hash listing each substring found in the original string and number of times it was found
  8. snail_sort - sort matrix like snail shell
  9. primes - for getting prime numbers

About

Small ruby programs, algorithms etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages