For example : input string is "xyz". output should be - xy z - x yz - x y z
Algorithm to print all the number possible with the digits of a given number
eg :if input is "234",combinations possible are
234,243,324,342,432,423
Write a c program that rotate elements of an array by the value of configured number "n". For example: Input array[ ] = { 2, 3, 5, 6, 8, 9} value of n = 2 Output array[] = { 5, 6, 8, 9, 2, 3} I am looking for efficient program.