Given an array of strictly increasing positive integers arr, find the length of the longest Fibonacci like subsequence of arr. If no such subsequence exists, return
A sequence
A subsequence is obtained by deleting zero or more elements from arr without altering the relative order of the remaining elements.
Constraints:
arr.length
arr[i] arr[i + 1]
Given an array of strictly increasing positive integers arr, find the length of the longest Fibonacci like subsequence of arr. If no such subsequence exists, return
A sequence
A subsequence is obtained by deleting zero or more elements from arr without altering the relative order of the remaining elements.
Constraints:
arr.length
arr[i] arr[i + 1]