Skip to content

mikedao/strings_and_arrays

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is no longer being updated. Moving everything to a new repository.

New Repository: https://github.com/mikedao/code_challenges

Strings and Arrays

A collection of exercises involving strings and arrays.

String Compression - compress_test.rb

Implement a method to perform basic string compression using the counts of repeated characters. For example, the string aabcccccaaa would become a2b1c5a3. If the "compressed" string would not become smaller than the original string, your method should return the original string.

Space Replacer - replace_test.rb

Write a method that will replace all spaces in a string with '%20'. This method will not replace any trailing spaces with %20.

Matrix Rotator - rotator_test.rb

Write a method that will take an NxN matrix of numbers and rotate it 90 degrees clockwise.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages