Questions / Amazon

Longest Even-Sum Subsequence

Asked at Amazon · Coding Questions · Difficulty: Easy

Given a positive integer array, return the length of the longest subsequence whose element sum is even.

Loading the problem…

More Amazon interview questions

  • LLM conceptual questions
  • Compare PPO, DPO, and GRPO
  • Morse Code Decoder
  • Design a Lab-Wide Experiment Platform for Embodied AI
  • Debugging a Seeded-Bug Repository with an AI Assistant
  • RLHF: PPO vs GRPO vs GSPO
All Amazon questions