InterviewSolution
| 1. |
A word arrangement machine when given an input line of words, rearranges them following a particular a rule in each step. The following is an illustration of steps of rearrangement. Input: I am sorry for this delay in attending office Input: I am sorry for this delay in attending office Step II: I office attending in delay this for sorry am Step III: am office attending In delay this for sorry Step IV: I am attending in delay this for sorry office Step V: Sorry office 1 am attending in delay this for If input is 'Rajni had an excellent tour of Singapore this May’ and steps are applied sequentially, then at the end of what step would the input become. Rajni had May this Singapore of tour excellent an’? |
|
Answer» A word arrangement machine when given an input line of words, rearranges them following a particular a rule in each step. The following is an illustration of steps of rearrangement. Input: I am sorry for this delay in attending office Input: I am sorry for this delay in attending office Step II: I office attending in delay this for sorry am Step III: am office attending In delay this for sorry Step IV: I am attending in delay this for sorry office Step V: Sorry office 1 am attending in delay this for If input is 'Rajni had an excellent tour of Singapore this May’ and steps are applied sequentially, then at the end of what step would the input become. Rajni had May this Singapore of tour excellent an’?
|
|