← Infosys questions
CodingMediumReported in a candidate post, Mar 2021

The Longest Fibonacci series into an array

Filed under Infosys

Given an array of integers, find the longest subsequence that follows the Fibonacci sequence property where the sum of two previous elements equals the next. Return the subsequence, or [-1] if no…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Infosys questions

Collected from public candidate posts and coding forums. Updated Nov 2026.