Skip to content

omahacodeschool/ruby-toy__find-only-unique-elements

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toy Problem - Ruby

Find Unique Elements of an Array

Given an array of items (in this case, just strings and integers, though your program should be able to handle booleans and floats as well), run through the array and then return an array of the items that appear only once in the original array.

For example, given [1, 2, "three", "three", 4], we should get back [1, 2, 4].

You may find it worthwhile to use the Ruby array class documentation, but know that there is no single method (that already exists) that can solve this for you, and that you can solve this problem without using any of the fancier array methods.

About

Given an array, find the elements that only appear once

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published