A sentence is a sequence of words separated by single spaces. Each word has a
Given a shuffled sentence s, reconstruct and return the original sentence by ordering the words according to their appended positions and removing the numbers.
Constraints:
s.length
s consists of lowercase and uppercase English letters, spaces, and digits from
The number of words in s is between
The words in s are separated by a single space.
s contains no leading or trailing spaces.
A sentence is a sequence of words separated by single spaces. Each word has a
Given a shuffled sentence s, reconstruct and return the original sentence by ordering the words according to their appended positions and removing the numbers.
Constraints:
s.length
s consists of lowercase and uppercase English letters, spaces, and digits from
The number of words in s is between
The words in s are separated by a single space.
s contains no leading or trailing spaces.