Skip to content

Latest commit

 

History

History

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

containsRange(5..7, 5..7) // true

containsRange(1..12, 5..7) // true

containsRange(5..8, 5..9) // false