In a grand circus event performers are about to do a stunt where each performer stands atop of the others shoulder. For practical reasons, each person must be strictly both shorter and lighter than the person below him or her.
Given the height and weight of each performers respectively in the text file, what is the maximum number of people that can be included in the stunt?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Here's my MATLAB code. (The first 7 lines are just getting the data from the file into an array.) It's probably not the best solution, but it does the job.