Questions / Amazon

Success Value for Each Query

Asked at Amazon · Coding Questions · Difficulty: Easy

Given `num_viewers` and a list of `queries` (each a `k`), return for each query the sum of the top `k` viewer counts.

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