A Coding Challenge Solution
Write a function that, given a string representing the list of M
photos,
returns the string representing the list of the new names of all photos
(the order of photos should stay the same).
- Clone this repository.
cd
into the photo_organizer directory.- In the command line, run
ruby photo_organizer.rb
cd
into the photo_organizer directory- start the ruby interpreter
irb
- require the file
require './photo_organizer.rb'
- execute the
solution()
function with the desired string (assumes string meets requirements and assumptions described in challenge doc)
To run tests:
gem install bundler
bundle install
bundle exec ruby photo_organizer_test.rb