问题
单项选择题
如果进栈序列为e1、e2、e3、e4、e5,则可能的出栈序列是( )。
A.e3、e1、e4、e2、e5
B.e5、e2、e4、e3、e1
C.e3、e4、e1、e2、e5
D.任意顺序
答案
参考答案:B
解析: 根据栈先进后出的特点可知e1肯定是最后出栈的,因此正确答案为选项B。
如果进栈序列为e1、e2、e3、e4、e5,则可能的出栈序列是( )。
A.e3、e1、e4、e2、e5
B.e5、e2、e4、e3、e1
C.e3、e4、e1、e2、e5
D.任意顺序
参考答案:B
解析: 根据栈先进后出的特点可知e1肯定是最后出栈的,因此正确答案为选项B。
完形填空。 | ||||
The tourism has become a very big 1 . Millions of people now 2 their holidays in other countries. The travel companies say that spending holidays in 3 places can help people to understand each other better. This can help towards peace (和平) and love among the 4 . These ideas may bring good business, 5 they aren't true to life. Very 6 of today's tourists want to know the people of the countries they are _7 . They just want a week or two of sunshine to lie on the 8 ___ by the sea. Most tourists do not want to discover things for 9 . They 10 want to travel and stay with their own families or friends for the whole holidays. The tourist business is really very easy for the travel companies. | ||||
|