Skip to content

nurji8git/lounge_chair_problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solution for lounge chair allocation

Pool has n lounge chairs arranged in a circle that are temporarily rented to bathers for a fee. When a group of k guests arrives, you must find k free sunbeds next to each other. When the group leaves after bathing, all k beds simultaneously become free and can be redistributed. If there are not enough sunbeds nearby, the group leaves again, and the lifeguard makes no money. The goal is to keep the sunbeds occupied as efficiently as possible so that the lifeguard earns a lot of money. Write a Java program to help the lifeguard occupy the sun loungers in the best way possible.

The main algorithms are in the CircularDataStructure class

About

Solution for lounge chair allocation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages