假设以I和O分别表示入栈和出栈操作。栈的初态和终态均为空,入栈和出栈的操作序列可表示为仅由I和O组成的序列,称可以操作的序列为合法序列,否则称为非法序列。 1 下面所示的序列中哪些是合法的? A.IOIIOIOO B. IOOIOIIO C. IIIOIOIO D. IIIOOIOO 2 通过对 1 的分析,写出一个算法,判定所给的操作序列是否合法。若合法,返回true,否则返回false(假定被判定的操作序列已存入一维数组中)。
【单选题】Calakmul is one of the largest Mayan cities ever found, but because it is _____ in the jungles of southern Mexico, this ancient settlement is hard to visit. h i de h i d i ng h i d d e n