Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/randhir200/mayday-or-oorah
Donald Trump has lost the presidential election of America, and because of the sadness he decides to leaves the White House before he was supposed to. Also, he took the entire staff with him, leaving the white house empty, and unguarded. Seeing the opportunity, Kim-Jong-Un and his North Korean militias decide to take over the white-house, and they did. But fortunately, all the important resources were safeguarded before they took over, except for the Nuclear codes. The Nuclear Codes are hidden at different spots in the white house, and the its only a matter of time before the Koreans get it. Thankfully, Mike Banning has managed to get into the President’s office. The white house has been designed in such a way, that every spot where a Nuclear code is hidden can be reached from the President’s office in 1 unit of time. So, Mike can go to the site where the code is present, then get the code, come back to the office, and go to the next site. The time required by the Koreans to get to the Nuclear Codes is given in the form of an array of size N, where N is the number of Nuclear Codes. The President-elect, Joe Biden, is very tensed. He wants to know if Mike can get all the Nuclear Codes before the Koreans. Since, you are his personal secretary, he asks you for help. If Mike can get all the Nuclear Codes before the Koreans, print “Oorah!”, else print “MayDay” Note : If the Koreans and the Mike reach the Nuclear Code together , the Koreans will take the key, as they will outnumber him and defeat him to get the key. I
https://github.com/randhir200/mayday-or-oorah
Last synced: 2 days ago
JSON representation
Donald Trump has lost the presidential election of America, and because of the sadness he decides to leaves the White House before he was supposed to. Also, he took the entire staff with him, leaving the white house empty, and unguarded. Seeing the opportunity, Kim-Jong-Un and his North Korean militias decide to take over the white-house, and they did. But fortunately, all the important resources were safeguarded before they took over, except for the Nuclear codes. The Nuclear Codes are hidden at different spots in the white house, and the its only a matter of time before the Koreans get it. Thankfully, Mike Banning has managed to get into the President’s office. The white house has been designed in such a way, that every spot where a Nuclear code is hidden can be reached from the President’s office in 1 unit of time. So, Mike can go to the site where the code is present, then get the code, come back to the office, and go to the next site. The time required by the Koreans to get to the Nuclear Codes is given in the form of an array of size N, where N is the number of Nuclear Codes. The President-elect, Joe Biden, is very tensed. He wants to know if Mike can get all the Nuclear Codes before the Koreans. Since, you are his personal secretary, he asks you for help. If Mike can get all the Nuclear Codes before the Koreans, print “Oorah!”, else print “MayDay” Note : If the Koreans and the Mike reach the Nuclear Code together , the Koreans will take the key, as they will outnumber him and defeat him to get the key. I
- Host: GitHub
- URL: https://github.com/randhir200/mayday-or-oorah
- Owner: Randhir200
- Created: 2022-08-02T16:09:06.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-02T16:13:16.000Z (over 2 years ago)
- Last Synced: 2024-11-06T03:46:56.632Z (about 2 months ago)
- Language: JavaScript
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files: