2015网易游戏校园招聘笔试题游戏插件研发岗(1)_20200428093258.pdf





《2015网易游戏校园招聘笔试题游戏插件研发岗(1)_20200428093258.pdf》由会员分享,可在线阅读,更多相关《2015网易游戏校园招聘笔试题游戏插件研发岗(1)_20200428093258.pdf(7页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、Adesc user;Bshow create table user;Cshow columns for user;Ddescribe user;ASYN,SYN+ACK,ACKBSYN,ACK,SYN,ACKCSYN+ACK,ACK,SYNDSYN,SYN,ACKA堆,栈B栈,堆C栈, 栈D堆,堆AHash_Map/B+TreeBSTL_Map/B+TreeCSTL_Map/Hash_MapDB+Tree/Hash_MapA预编译B编译C汇编D链接2015网易游戏校园招聘笔试题网易游戏校园招聘笔试题 游戏插件研发岗游戏插件研发岗一. 单项选择题1. 用命令()可以查看mysql数据库中use
2、r表的表结构?2. tcp三次握手创建连接,双方交互的报文中SYN和ACK的序列是什么样的()3. 函数参数使用的空间是在()中申请的,malloc或new是在()中申请空间的?4. 有B+Tree/Hash_Map/STL Map三种数据结构。对于内存中数据,查找性能较好的数据结构是(),对于磁盘中数据,查找性能较好的数据结构是()。5. 由源代码生成可执行文件需要经过预编译,编译,汇编,链接等阶段,错误:unresolved external symbolBeginScene属于$#$阶段错误。二. 多选选择题6. 下面属于进程间通信的有?NOWCODER.COM牛客网-中国最大IT笔试/
3、面试题库牛客出品-http:/A管道B消息队列C内存共享D套接字A物理层,在此层将数据分帧,并处理流控制B数据链路层,为物理层提供连接,以便透明的传送比特流C网络层,本层通过寻址来建立两个节点之间的连接,为源端的运输层送来的分组,选择合适的路由和交换节点D运输层,常规数据递送面向连接或无连接E会话层,在两个节点之间建立端连接。F表示层,主要用于处理两个通信系统中交换信息的表示方式。ATCP是无序数据传输,UDP不是BTCP重发丢失的IP包,UDP不是CTCP是传输流的协议,而UDP不是DTCP面向连接,而UDP不是7. 下面关于ISO网络参考模型分层及每一层功能描述错误的有?8. 以下对TCP
4、和UDP区别的描述哪些是正确的()三. 填空题9.char *p1;int 64_t *p2;p1=(char *)0 x800000;p2=(int 64_t *)0 x800000;char *a=p1+2int 64_t *b=p2+2那么a=(),b=()10. 有一个数组(53,83,18,59,38,35),依次将其存储在hash表中,其中哈希函数为h(k)=k%7,如采用线性探测(每次向后查找1位)的方式解决冲突,则该hash表上查找38,35,53访问hash表的表项次数分别为(),(),()。11. 32位系统上char c1=a,b,0,d,e;char c2=hello;
5、sizeof(c1),strlen(c1),sizeof(c2),strlen(c2)值分别是()()()()。四. 问答题NOWCODER.COM牛客网-中国最大IT笔试/面试题库牛客出品-http:/12.使用C/C+语言写一个函数,实现字符串的反转,要求不能用任何系统函数,且时间复杂度最小。函数原型是:char *reverse_str(char *str)13. 在SQL中,一个表的定义如下:CREATE TABLE t_account( account varchar(100), account_type TINYTEXT, PRIMARY KEY (account),;accoun
6、t为账号,account_type为该账号的类型,写出一个sql,统计账号数累计超过5000个账号类型,并显示对应的账号数,即结果中每行是(账号类型,账号数)14. http状态码中,()表示访问成功,()表示坏请求,()表示服务不可用15. 现有/home/script/check.sh脚本,要求每周一到周五14点内每三分钟运行一次,相应的crontab配置是()16. 请找出下面用于拷贝内存的代码中的逻辑错误,并修正。void memcpy(const char* src,char* dest) int len=strlen(src); dest=(char*)malloc(len); c
7、har* d=dest; char* s=src; while(len-!=0) *d=*s; d+; s+; 17. Disjoint-set data structureIn computing, a disjoint-set data structure, also called a unionfind data structure or mergefind set, is adata structure that keeps track of a set of elements partitioned into a number of disjoint (nonoverlapping)
8、subsets. It supports two useful operations:NOWCODER.COM牛客网-中国最大IT笔试/面试题库牛客出品-http:/Find: Determine which subset a particular element is in. Find typically returns an item from this set thatserves as its representative; by comparing the result of two Find operations, one can determine whethertwo elem
9、ents are in the same subset.Union: Join two subsets into a single subset.The other important operation, MakeSet, which makes a set containing only a given element (a singleton), isgenerally trivial. With these three operations, many practical partitioning problems can be solved (see theApplications
10、section).In order to define these operations more precisely, some way of representing the sets is needed. Onecommon approach is to select a fixed element of each set, called its representative, to represent the set asa whole. Then, Find(x) returns the representative of the set that x belongs to, and
11、 Union takes two setrepresentatives as its arguments.Disjoint-set forestsDisjoint-set forests are data structures where each set is represented by a tree data structure, in which eachnode holds a reference to its parent node (see spaghetti stack). In a disjoint-set forest, the representative of each
12、 set is the root of that sets tree. Find follows parent nodesuntil it reaches the root. Union combines two trees into one by attaching the root of one to the root of theother. Question 1:According to the information above,implement threefunctions:MakeSet(),Fins(),Union().You can use C/C+/Python/Java
13、.In this naive form, this approach is no better than the linked-list approach, because the tree it creates can behighly unbalanced; however, it can be enhanced in two ways.The first way, called union by rank, is to always attach the smaller tree to the root of the larger tree, ratherthan vice versa.
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 2015 网易 游戏 校园 招聘 笔试 插件 研发 _20200428093258

限制150内