Minimize cost of converting all array elements to Fibonacci Numbers
Given an array arr[] consisting of N integers, the task is to minimize the cost of converting all array elements to a Fibonacci Number, where the cost of converting a number A to B is the absolute difference between A and B. Examples: Input: arr[] = {56, 34, 23, 98, 7}Output: 13Explanation:Following