Problem 2561. expand intervals vol.3
This is the next problem after 2528 and 2560. It is a more general case, when bounds creates intersections between intervals. Description changes as follow:
Given a row vector of an even number of scalars. Each pair create bounds of an interval but their occurence may vary. Return a row vector which consists of all the integers, ordered, non repeated, within these intervals (union of integer intervals).
See also problem 1986
Solution Stats
Problem Comments
-
4 Comments
Show
1 older comment
Jan Orwat
on 16 Sep 2014
Newer checked that. Thanks for pointing that out.
Jan Orwat
on 16 Sep 2014
Should be ok now. Using seems to be not a good idea here. I have to check other problems I've submitted :-)
Asif Newaz
on 22 Jan 2020
problem statement is a little vague
Solution Comments
Show commentsGroup

Magic Numbers II
- 14 Problems
- 70 Finishers
- One track five lanes
- PONG 002: Rectangle, Interactive Download, Easier Play
- PONG 003: 3-Ball Rectangle, Interactive Download
- Capture the flag(s)
- GJam 2014 China Rd A: Maze with a Left Hand Rule
- GJam 2014 China Rd B: Dragon Maze
- 2048 tile game
- PACMAT - G03 Ghosts use minimum path to PACMAT; 3 Lives
- PACMAT 04 - Optimized Ghosts, Equal Speed, 10 Lives
- PACMAT 05 - Optimized Ghosts, PACMAT increasing speed, 12 Lives
- The sliding puzzle: 15
- Fifteen Parity Check
Problem Recent Solvers72
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!