Skip to content

keithmifsud17/CircusTower

Repository files navigation

CircusTower

A circus is designing a tower routine consisting of people standing atop one another’s shoulders. For practical and aesthetic reasons, each person must be both shorter and lighter than the person below him or her. Given the heights and weights of each person in the circus, write a method to compute the largest possible number of people in such a tower. Keep in mind that you are computing the tallest tower possible, which may or may not include every person provided in the input.

File Format

Input file contains the height and weight of all the people, one per each line. (Height and weight are separated by a comma.)

Execution

In case that weight is provided first ./CircusTower -f "input.txt" --weightFirst or in case that height is first ./CircusTower -f "input.txt"

About

Circus Tower Problem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages