Skip to content

Latest commit

 

History

History

interval

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Given an array of numbers and string which can be in form:

"[a,b]"
"(a,b]"
"[a,b)"
"(a,b)"

More about intervals.

Task

Given an array of numbers and string - interval.

Return array of numbers between interval. Output must be sorted array. If string/array is empty, return empty array.