Problem Description:
We have to rearrange a given sentence ‘s’. Words of this sentence are separated by spaces. Each word contains a number at the end which indicates the position where the word should be placed to arrange the sentence.
Constraints:
Ideological Analysis:
We have to check the last element of every word. Then we’ll sort them according to the number given at the end of the word and remove the last element of each word.
Click here for Source Code.
Tanjina Rahman, 31 May, 2021
Share this article on →