Available question text
Generate an array nums of length n+1 using the recurrence nums[0]=0, nums[1]=1, nums[2*i]=nums[i], nums[2*i+1]=nums[i]+nums[i+1] (even indices copy, odd indices sum) and return the maximum value in nums; n≤100 so a straightforward O(n) construction suffices.
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 1646. Get Maximum in Generated Array
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source