Returns count of minimum operations to convert a zero array to target array with increment and doubling operations . This function computes count by doing reverse steps , i . e . , convert target to zero array .
int countMinOperations ( unsigned int target [ ] , int n ) {