Given an integer k, return the minimum number of Fibonacci numbers whose sum is equal to k. The same Fibonacci number can be used multiple times. The Fibonacci numbers are defined as: It is guaranteed that for the given constraints we can always find such Fibonacci numbers that sum up to k. Example 1: Input:…
Leet code problem 1414: – Find the Minimum Number of Fibonacci Numbers Whose Sum Is K Medium
Posted on