Skip to content

Latest commit

 

History

History
 
 

contains_range

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Contains range

Instructions

Given two ranges implement a function which checks if range1 contains range2.

Challenge | Solution

Examples

contains_range?(5..7, 5..7) # true

contains_range?(1..12, 5..7) # true

contains_range?(5..8, 5..9) # false