Available question text
Given a strictly increasing array of positive integers, find the length of the longest subsequence (not necessarily contiguous) that is Fibonacci-like — i.e., every element from the third equals the sum of the two preceding ones — or return 0 if none exists. Constraints: 3 ≤ n ≤ 1000 and values ≤ 1e9, so solutions typically exploit pairwise relationships (DP/hash) to build lengths efficiently.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 873. Length of Longest Fibonacci Subsequence
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source