题目详情
单选题 已知一个栈的进栈序列是1,2,3,…,n,其输出序列是p1,p2,…,pn,若p1=n,则pi的值()
A. i
B. n-i
C. n-i+1
D. 不确定
学科:数据结构
时间:2023-09-07 03:29:25
相关题目
相关作业