广义表LS=((a,b,c),((d),(e),(f))),则深度为_. head(tail(head(tail(LS))))=?
题目
广义表LS=((a,b,c),((d),(e),(f))),则深度为_. head(tail(head(tail(LS))))=?
答案
深度为3
tail(LS) = (((d),(e),(f)))
head(tail(LS) = ((d),(e),(f))
tail(head(tail(LS)))= ((e),(f))
head(tail(head(tail(LS)))) = (e)
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
最新试题
- 谁知道英语题:China has developed[ ]since 1978[rapid]用正确形式填
- do you have a dress in my size 的答句
- 两个因数的积是4.726,如果一个因数扩大10倍,另一个因数的小数点向右移动三位,
- 怎么把kj/h换算成w
- 游乐场的过山车的运行过程可以抽象为如图所示模型,弧形轨道的下端与圆轨道相接,使小球从弧形轨道上端A点静止滑下,进入轨道后沿圆轨道运动,最后离开,试分析A点离轨道的高度h至少要多大,小球才可以顺利通过轨
- (a-b)(x+3)-(b-a)(y+2)+(a-b)(5-z)
- 边长为a的等边三角形外接圆半径为?圆心到边的距离为?
- detectives,an,made,article,a,she,write,to,promise,on 英语连词成句,
- straw board
- 英语作文60词 《My favorite player》
热门考点