顺丰科技2019秋招安卓开发工程师笔试客观题合集
时长:90分钟 总分:100分
311浏览 0人已完成答题
题型介绍
题型 | 单选题 | 多选题 | 简答题 |
---|---|---|---|
数量 | 22 | 11 | 1 |
二叉排序树的链表节点定义如下: typedef struct BiTnod...
typedef struct BiTnode{ int key_value struct BiTnode *L,*R/*节点的左、右树指针*/ }
请补充完整查找键值key的函数。
BSTree lookup_key(BSTree root,int key) { if() return NULL else if(key == root->key_value) return root else if(key > root->key_value) return (1) else return (2) }
设有递归算法如下,最终打印结果是()
#include
#include<stdio.h> int foo(int a ,int b) { if (b == 0) return 0 if (b % 2 == 0) return foo(a+a,b/2) return foo(a+a,b/2)+a } int main() { printf("%d", foo(1,3)) return 0 }
此代码片段输出正确的值是()
public class CharToString { public static void main(String[] args) { char myChar = 'g' String myStr = Character.toString(myChar) System.out.println("String is: "+myStr) myStr = String.valueOf(myChar) System.out.println("String is: "+myStr) } }此代码片段输出正确的值是()
一个空栈,如果有顺序输入:a1,a2,a3...an(个数大于3),而且输出第一个为 a(n-1), 那么所有元素都出栈后,()
总部给某分公司分配的网络地址是172.16.2.0/24,该分公司有三个部...
甲乙丙3个进程对某类资源的需求分别是7个、8个、3个。且目前已分别得到了3...
某打车公司将驾驶里程(drivedistanced)超过5000里的司机信...
下面哪种UML图描述的是一个实体基于事件反应的动态行为,显示了该实体如何根...
请指出下面一段单例的伪代码写法问题? private static&nb...
private static SingLeton instance public SingLeton static singleton(){ synchronized (this){ if(instance == null){ instance = new SingLeton() } } return instance }
以下程序执行后返回的结果是:( ) var p1 ...
var p1 = { name:'小明', age:'12', action:function(where,doing){ console.log(this.age + '岁的'+this.name + '在' + where + doing) } } var p2 = { name:'小红', age:'15' } console.log(p1.action.call(p2,'操场上','运动'))