Create a Java program 5. Stand out, Fit in by CodeChum Admin A good spy can always recognize another spy. No matter how good the disguise or how well they blend in, something about spies will always stand out and make them unique. For your final exam in Spy school you have to distinguish spies that are hiding in plain sight and among the public. You're given a multidimensional array that shows the people in a certain area. A spy is found if there is at least one of the people that is unique from all the others. Inputs 1. Number of rows of the multidimensional array 2. Number of columns of the multidimensional array 3. Elements of the multidimensional array Each element is within the range: 0 <= n <= 10 Sample Output Enter the number of rows: 3 Enter the number of columns: 3 1 2 2 7 3 8 4 4 3 SPY Expected Output Enter the number of rows: 4 Enter the number of columns: 3 4 3 3 2 3 6 5 4 6 3 5 2 NONE Expected Output Enter the number of rows: 4 Enter the number of columns: 4 5 6 2 4 3 5 7 2 3 2 1 7 2 6 8 3 SPY Expected Output Enter the number of rows: 4 Enter the number of columns: 4 5 3 3 2 2 4 5 1 9 8 1 8 9 2 4 5 NONE Expected Output Enter the number of rows: 4 Enter the number of columns: 3 3 4 2 1 3 6 2 5 9 1 8 9 SPY Expected Output Enter the number of rows: 4 Enter the number of columns: 5 4 1 8 4 2 3 7 9 2 0 3 1 4 8 9 4 5 9 0 1 SPY
Create a Java program
5. Stand out, Fit in
by CodeChum Admin
A good spy can always recognize another spy. No matter how good the disguise or how well they blend in, something about spies will always stand out and make them unique.
For your final exam in Spy school you have to distinguish spies that are hiding in plain sight and among the public. You're given a multidimensional array that shows the people in a certain area. A spy is found if there is at least one of the people that is unique from all the others.
Inputs
1. Number of rows of the multidimensional array
2. Number of columns of the multidimensional array
3. Elements of the multidimensional array
Each element is within the range: 0 <= n <= 10
Sample Output
Expected Output
Expected Output
Expected Output
Expected Output
Expected Output
Step by step
Solved in 4 steps with 2 images
Can you do it like this? for input.
Thank you