Answer to Question #289253 in Python for sai krishna

Question #289253

in a new game called the golden game, players collect gold coins. the players get only one chance to play and only one player play at a time. the score of each player is difines as the number of coins collected by the player. a player is called a golden player if he scores more than the players who played after her. score is called golden score if it is scored by a golden player. if your are given a list of (A) of integers representing scores of players in the order they played first to last. Write a program to print all the golden scores in the list by maintaining the relative order.

SAMPLE INPUT1:4 5 1 3 2

SAMPLE OUTPUT:- 5 3 2

SAMPLE INPUT2:9 8 10 12

SAMPLE OUTPUT2:12


1
Expert's answer
2022-01-20T10:09:51-0500
Dear sai krishna, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS