0

How does this work. Can anybody explain please.

https://code.sololearn.com/cdUxFFaxwyD0/?ref=app

19th Jul 2022, 11:26 AM
Tristan
2 Respuestas
+ 1
Take a sample : First input is maxBid = 1000 Next you can input bids until exceed maxBid. Then it will sold to your max bid maxBid = 1000 200 300 400 500 700 900 1200 here bid<maxBid 1200<1000 is false. You can output sold to 1200 Question is implement code for this. Hope I understood your question correctly.. and hope your code qualifies... Because iam checked it. Hope it helps... https://www.sololearn.com/Discuss/3042737/?ref=app
19th Jul 2022, 11:46 AM
Jayakrishna 🇮🇳
+ 1
Thank you
19th Jul 2022, 11:49 AM
Tristan