归档 2018年7月22日

[LeetCode]Length of Longest Fibonacci Subsequence

题目描述:

LeetCode 873. Length of Longest Fibonacci Subsequence

A sequence X_1, X_2, ..., X_n is fibonacci-like if:

  • n >= 3
  • X_i + X_{i+1} = X_{i+2} for all i + 2 <= n

Given a strictly increasing array A of positive ...

继续阅读

昨天

明天

归档