若已知一个栈的入栈序列是1,2,3,……,n,其输出序列是p1,p2,p3,……,pn,若p1=n,则pi为_______。
A. i
B. n-i
C. n-i+1
D. 不确定
查看答案
当利用大小为N的一维数组顺序存储一个栈时,假定用top==N表示空栈,栈元素由后向前进行顺序存储,则向这个栈插入一个元素时,首先应执行()语句修改top指针。
A. top++
B. top--
C. top=0
D. top
There are five short dialogues about sharing on social media. Listen carefully, and choose the best answer to the question.[音频]Q: How often does the woman share her photos on social media?
A. Every day.
B. Every two days.
C. Every week.
D. Every month.
Q: What social media App does the woman use to share information?
A. WhatsApp.
B. Twitter.
C. WeChat.
D. Weibo.
Q: What does the man do on social media?
A. Watches videos.
B. Reads novels.
C. Reads information.
D. Chats.