Skip to content

edgartheunready/ruby-diff-interview

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ruby-diff

A simple test of ruby knowledge

Objective

There are two files. These two files contain strings. Write a ruby script that takes the contents of file1 and compares them to the contents of file2. Print the lines that appear in file1 but do not appear in file2.

Submission

Fork this repo, craft your solution, and submit a pull request when you're finished.

Hints and other information

  • The line number for the string is irrelevant
  • comparison should be case sensitive
  • it is merely a coincidence that each file contains 1000 lines.
  • Bonus points if your code is written in a reusable fashion.
  • Bonus points if your code has tests.

About

Ruby knowledge interview question

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%