Given an array of integer,Task is to get the squareful permutaion of array.
An array is called squareful if sum of adjacent element is perfect square.
ex-[1,6,3]
o/p=>2 ie([1,3,6] and [6,3,1])
Comments (1)
Given an array of integer,Task is to get the squareful permutaion of array.
An array is called squareful if sum of adjacent element is perfect square.
ex-[1,6,3]
o/p=>2 ie([1,3,6] and [6,3,1])