xiyoulaoyuanjia / blog

记录与总结 and else?
5 stars 2 forks source link

sohu_for2013Intern #4

Closed xiyoulaoyuanjia closed 8 years ago

xiyoulaoyuanjia commented 11 years ago

原文 感谢原作者..

xiyoulaoyuanjia commented 11 years ago

第一题: 四个里面选择一个不同

2.A:AirBNB  B:CragList  C:Yandex  D:Monster

4.A:AVL  B:Huffman  C:B  D:B+

6.A:Spring  B:Ibatis  C:Velocity  D:Zend

8.A:H1  B:BR  C:DIV  D:P

9.A:JQuery  B:Node.js  C:Prototype  D:CommonJS

11.A:XML  B:JSon  C:Base64  D:YAML

15.A:main  B:typedef  C:sizeof  D:enum

17.A:Mysql  B:MongoDB  C:DB2  D:PostgreSQL

18.A:fiddler  B:firebug  C:httpwatch  D:IETester

19.A:<nav>  B:<footer>  C:<meta>  D:<canvas>

nav 标示导航的标签 footer 文档的页脚标签 canvas 是html5 提供的绘图使用的标签 meta 表示html 属性信息的标签例如 作者,日期 使用语言等等信息...

xiyoulaoyuanjia commented 11 years ago

第二题: 填空题

1.52张牌,没有大小王,平均分给4个人,至少一个人拿到至少2张A的概率是( ).去掉4张K,剩下48张牌,抽到的概率比刚才(大还是小)。无数张牌,抽到的概率是()。

2.2个骰子,摇到7的概率()。若摇到6的概率是50%,则摇到7的概率()。

xiyoulaoyuanjia commented 11 years ago

第三部分:论述题

1.请从C/C++、java、python、javascript语言种任一种,论述其基本数据类型,API种类,适用范围以及优缺点。

2.对第一题中的语言,论述其在调试过程中出现的问题和错误种类。

3.列举程序漏洞种类,以及如何系统性的避免这些漏洞。

4.请从“唱吧”和“微信”两款APP中,选择一款,画出系统结构图。注意:考虑前端、后端、数据流转。

xiyoulaoyuanjia commented 11 years ago

一块40g的石头,摔成了4块, 每块都是整数。给你一个天平,没砝码,也没刻度,两边可以放东西的。 可以用这个4块测出任何0-40g的物质重量(也是整数重量),请问:这4块分别是多重?

分别用递归与迭代写出链表的逆转.

原题:Implement an algorithm to print all valid (e.g., properly opened and closed) combinations of n-pairs of parentheses.

EXAMPLE: input: 3 (e.g., 3 pairs of parentheses) output: ()()(), ()(()), (())(), ((()))

输入n 输出所有的合法的括号输入队的个数..