Skip to content

ssolunna/basic-ruby-projects

Repository files navigation

Basic Ruby Projects

A couple of classic “intro to programming” problems using Ruby to help solidify my knowledge and get warmed up to working on small projects.

All the projects were assigned by The Odin Project curriculum.

Content

Basic

  • Caesar Cipher: Takes in a string and the shift factor and then outputs the modified string using the Caesar Cipher technique.
  • Sub Strings: Returns a hash listing each substring from a dictionary (case insensitive) that was found in the original string and how many times it was found.
  • Stock Picker: Takes in an array of stock prices, one for each hypothetical day, and return a pair of days representing the best day to buy and the best day to sell.
  • Bubble sort: Sort a group of numbers in an array using the Bubble Sort method.
  • Fibonacci: Takes a number and returns an array containing that many numbers from the fibonacci sequence using iteration and recursion.
  • Merge Sort: Takes in an array and returns a sorted array, using a recursive merge sort methodology

Data Structures and Algorithms

  • Linked Lists: Builds a linked list class.
  • Binary Search Trees: Builds a balanced BST.
  • Knight Travail: Shows the shortest possible way to get from one square to another by outputting all squares the knight will stop on along the way.

Created by Selena Solunna

About

A couple of basic ruby projects

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages