Question: In java consider an inarr containing atleast two non- zero unique positive integers. identify and print,outnum, the number of unique pairs that can be identified
In java
consider an inarr containing atleast two non- zero unique positive integers. identify and print,outnum, the number of unique pairs that can be identified from inarr such that the two integers in the pair when concatenated, results in a palindrome. if no such pairs can be identified, print -1.
Input format:
Read the array inarr with the elements separated by ,
Read the input from the standard input stream
Output format;
Print outnum or -1 accordingly
Print the output to the standard output stream
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
