THE EXERCISE OF THE GUYS GUYS HAS BEEN MOVED TO THE MENU "EXERCISE OF Teacher"

Check array symmetry

Threads: For an array of n integers. Check if the array is mirrored. Plate symmetric arrays when writing in the forward or reverse are identical results.
Input: The first line is an integer n. The second line 2 n is an integer array, of numbers separated by spaces.
Output: If the array symmetry print “TRUE”, if not printed “FALSE”.
For example:

input:
4
1 3 3 1
output:
TRUE

You are not logged in? Log in to Submit Now!

4 Comments

Add a Comment