Skip to content

Latest commit

 

History

History
18 lines (10 loc) · 302 Bytes

File metadata and controls

18 lines (10 loc) · 302 Bytes

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