Daisy loves playing games with words. Recently, she has been playing the following Deletive Editing word game with Daniel. Daisy picks a word, for example, "DETERMINED". On each game turn, Daniel calls out a letter, for example, 'E', and Daisy removes the first occurrence of this letter from the word, getting "DTERMINED". On the next turn, Daniel calls out a letter again, for example, 'D', and Daisy removes its first occurrence, getting "TERMINED". They continue with 'I', getting "TERMNED", with 'N', getting

Respuesta :

The steps for Daisy to take in giving the Input and Output of the program are as detailed below.

How to create a program for games?

For the Input, we do it as follows;

The first line of the input contains an integer n — the number of test cases (1 ≤ n ≤ 10000). The following n lines contain test cases.

Now, each test case will consist of two words s and t separated by a space. Each word consists of at least one and at most 30 uppercase English letters; s is the Daisy's initial word for the game; t is the final word that Daisy would like to get at the end of the game.

For the Output, we will do it as follows;

Output n lines to the output — a single line for each test case. Output "YES" if it is possible for Daisy to get from the initial word s to the final word t by playing the Deletive Editing game. Output "NO" otherwise.

Read more about game programs at; https://brainly.com/question/1786465

#SPJ1