tusharbose11 / best-mht-game Goto Github PK
View Code? Open in Web Editor NEWFour players are playing game with following features: a. Total 100 random no. from range 100-999 in main queue. b. At starting, Each player maintain own Max heap tree (MHT). c. Each player fetches one no. at a time from main queue and insert it into own MHT in Circular fashion (one by one) till main queue empty. d. Now every player has MHT of 25 no.. Winning strategy: The player with max. Value at top from others implies to winner.
License: MIT License