一棵深度为k的平衡二叉树,其每个非终端结点的平衡因子均为0,则该树共有()个结点。
A. 2^(k-1)-1
B. 2^(k-1)
C. 2^(k-1)+1
D. 2^k-1
查看答案
以下叙述正确的是______________。
A. 在C程序中,main函数必须位于程序的最前面
B. C程序的每行中只能写一条语句
C语言本身没有输入输出语句
D. C程序进行编译的过程中,可发现注释中的拼写错误
Completethefollowingparagraphwithkeyinformationfromthetext.Iwasadmittedintoafreshman____atYalethat____ustoreadupWesternclassics,comprehendthem,____themand____ paperswith____ideasonthem.Althoughthiswasmyfirstyearinanall-Englishenvironment andsometimesIwas____ofallthehardwork,I____tounderstandWesternsociety.I____formylackofpreparationwithdiligence.Ipulledall-nighters,I____afterclasstoaskquestions,Ilearnednote-takinginEnglishfrommyclassmates,andIvisitedthewriting____.Asaresult,astheyearcametoanend,IreceivedA's forallmypapers.