登录
|
注册
公司
标签
文章
搜索
C语言工程师
热门公司
迅雷
腾讯
百度
奇虎360
微软
华为
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
0
0
2824
以下prim函数的功能是分解质因数。括号内的内容应该为? void prim(int m, int n) { if (m >= n) { while ( ) n++; ( ); prim(m, n); cout << n << endl; } } m/n m/=n m/n m%=n m%n m%=n m%n m/=n ...
阅读题目
C语言工程师
迅雷
C语言工程师
单选题
经典指数
0
0
2824
以下prim函数的功能是分解质因数。括号内的内容应该为? void prim(int m, int n) { if (m >= n) { while ( ) n++; ( ); prim(m, n); cout << n << endl; } } m/n m/=n m/n m%=n m%n m%=n m%n m/=n ...
阅读题目
C语言工程师
迅雷
C语言工程师
单选题
经典指数
0
0
2239
char *GetMemory(void) { char p[] = "hello world"; return p; } void Test(void) { char *str = NULL; str = GetMemory(); printf(str); } 请问运行Test 函数会有什么样的结果? hello world 空 出错 ...
阅读题目
C语言工程师
华为
单选题
经典指数
0
0
2056
int main() { unsigned char i = 1; i -= 4; printf(“the value of i is: % d”, i); } 请问i的值是: 253 254 255 256 ...
阅读题目
迅雷
C语言工程师
单选题
经典指数
0
0
3265
下面程序段的运行结果是: char c[5]={‘a’,’b’,’\0’,’c’,’\0’}; printf(“%s”,C); ’a’’b’ ab ab_c ab_c_(其中_表示空格) ...
阅读题目
迅雷
C语言工程师
单选题
经典指数
0
0
2526
请用C++实现以下print函数,打印链表I中的所有元素, 每个元素单独成一行 void print(const std::list &l){ } ...
阅读题目
网易
C语言工程师
链表
问答题
经典指数
0
0
2807
有n枚硬币按照0到n-1对它们进行编号,其中编号为i的硬币面额为vi,两个人轮流从剩下硬币中取出一枚硬币归自己所有,但每次取硬币的时候只能取剩下的硬币中编号最小的硬币或者编号最大的硬币,在两个都采用最优策略的情况下,作为先取硬币的你请编写程序计算出你能获得硬币总面额的最大值?(请简述算法原理,时间复杂度并实现具体的程序),语言不限。 int MaxValue(int v[],int n){ } ...
阅读题目
2015
京东
C语言工程师
复杂度
问答题
经典指数
0
0
3252
void Test(void) { char *str = (char *) malloc(100); strcpy(str, “hello”); free(str); if (str != NULL) { strcpy(str, “world”); printf(str); } } 请问运行Test函数会有什么样的结果? hello world helloworld 未定义行为 ...
阅读题目
C语言工程师
华为
单选题
经典指数
0
0
2579
int func(unsigned int i) { unsigned int temp = i; temp = (temp & 0x55555555) + ((temp & 0xaaaaaaaa)>>1); temp = (temp & 0x33333333) + ((temp & 0xcccccccc)>>2); temp = (temp & 0x0f0f0f0f) + ((temp & 0xf0f0f0f0)>>4); temp = (temp & 0xff00ff) + ((temp & 0xff00ff00)>>8); temp = (temp & 0xffff) + ((temp & 0xffff0000)>>16); return temp; } 请问func(0x1f530828)的返回值是: 15 14 16 13 11 12 ...
阅读题目
阿里巴巴
C语言工程师
单选题
经典指数
0
0
1627
Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number. An example is the root-to-leaf path1->2->3which represents the number123. Find the total sum of all root-to-leaf numbers. For example, 1 / \ 2 3 The root-to-leaf path1->2represents the number12. The root-to-leaf path1->3represents the number13. Return the sum = 12 + 13 =25. ...
阅读题目
C语言工程师
树
面试题
经典指数
<<
<
5
6
7
8
9
10
>
>>
128
题目数
2
贡献者
1010
答案数
扫描后移动端查看
我也分享一个题目
相关标签
迅雷
研发工程师
2016
腾讯
百度
奇虎360
2015
微软
华为
2014
同类标签
研发工程师
游戏运营
产品运营
运维工程师
Android
测试工程师
.NET
iOS
机器学习
Go
微信公众号
欢迎加入,一起群聊
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录