数据结构--栈:进栈顺序1234,出栈顺序有哪些?3142不可能

进栈顺序1234,出栈顺序有

1234  1243   1324  1342  1432
2134  2143   2314  2341  2431
3214  3241   3421 
4321
共15种,其中出栈顺序3142是得不到的

猜你喜欢

转载自blog.csdn.net/qq_36688143/article/details/79812024
今日推荐