2016年阿里巴巴数据产品经理笔试题.docxVIP

  • 20
  • 0
  • 约 12页
  • 2016-12-02 发布于重庆
  • 举报
已知二叉树中有45个叶节点,有25个度为1的节点,则二叉树的总结点数为____。112113114115116117有一个扔骰子得返现的游戏:你扔一个骰子,扔到多少就可以得到和点数相同的返现。例如你扔到3,可以得到3元返现;扔到1,可以得到1元返现。当你扔完第一次骰子,看到点数后,你需要做出如下选择:1、拿这个点数对应的返现,放弃扔第二次骰子;2、再扔一次骰子,但此时你只能拿第二次扔的点数对应的返现。那么,玩一轮这个游戏的期望收益是____元。3.53.7544.254.54.75下列java程序的输出结果为____。public class Example{String str=new String(hello);char[]ch={a,b};public static void main(String args[]){ Example ex=new Example(); ex.change(ex.str,ex.ch); System.out.print(ex.str+ and ); Sytem.out.print(ex.ch);}public void change(String str,char ch[]){ str=test ok; ch[0]=c;}}hello and abhello and cbhello and atest ok and abtest ok and

文档评论(0)

1亿VIP精品文档

相关文档