HF RL Explorer

Task: Reverse the Ordering of Words in a String

Task: Reverse the Ordering of Words in a String: a task in Terminal-Lego-15k (Harbor dataset). Write a program that reverses the order of words in a given string. The words themselves should remain intact, but their positions in the string should be reversed.

The task

Write a program that reverses the order of words in a given string. The words themselves should remain intact, but their positions in the string should be reversed.

Part of PrimeIntellect/Terminal-Lego-15k.