| 1. |
Plz tell me Plz plz tell plz |
|
Answer» Find Password: Detective Buckshee Junior has been approached by the SHANTINIKETAN kids society for help in finding the password to the games complex. After hearing the scenario, detective Buckshee Junior realises that he will need a programmer's support He contacts you and requests your help. Please help the detective by writing a function to generate the password, The scenario is as below Five numbers are available with the kids These numbers are either stable or unstable A number is stable if each of its DIGIT occur the same number of TIMES, ie the frequency of each digit in the number is the same. Foreg 2277 4004. 11. 23 583835, 1010 are examples of stable numbers Similarly. A number is unstable if the frequency of each digit in the number is NOT the same. For e.g. 221, 4314. 101, 233, 58135, 101 are examples of unstable numbers The password can be found as below Te password = Maximum of all stable numbers - MINIMUM of all stable |
|