单项选择题

The input sequence of a stack is 1,2,3, ..., n, if the first element of the output sequence is i, then the output element j (1 <= j <= n) is ( ) .

A.A i-j+1
B.B i-j-1
C.C j-i+1
D.D Uncertain
微信扫码免费搜题