Questions / Amazon

Reverse Each Word in a String

Asked at Amazon · Coding Questions · Difficulty: Easy

Given a string of space-separated words, reverse the characters within each word while keeping the word order.

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