Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Generate all Fibonacci numbers up to the limit (they are few).
Use greedy solution, taking at every time the greatest Fibonacci number which is smaller than or equal to the current number. Subtract this Fibonacci number from the current number and repeat again the process.