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
In the explanations, links are to problems, but in the solve page, links are to solutions.
Newer checked that. Thanks for pointing that out.
Should be ok now. Using seems to be not a good idea here. I have to check other problems I've submitted :-)
problem statement is a little vague
Solution Comments
Show commentsProblem Recent Solvers65
Suggested Problems
-
Project Euler: Problem 8, Find largest product in a large string of numbers
1024 Solvers
-
Get the length of a given vector
9901 Solvers
-
Deleting an element in a matrix
455 Solvers
-
Write a function man that takes a row vector v and returns a matrix H as follows..
598 Solvers
-
4337 Solvers
More from this Author40
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!