xyz Interview Question for Software Developers
- 0of 0 votes
An Integer array is given,- chjit99 February 08, 2016 in India
Find the combination of number in the array which satisfies the equation: a to the power b= c.
A number should not be repeated in multiple combination.
1. a and b are adjacent no. in the array.c can be any where in the array.
2.No other array or data structure can be used. However modification of current array is possible.
Define a function which will take array as input and generate a output array (a modification of input array).
Example: Input array: 1 2 3 8 5
out put: 2 3 8 0 0
| Report Duplicate | Flag | PURGE
xyz Software Developer
Interview Type: Written Test
Open Chat in New Window