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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!