由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - Arista Networks面经2
相关主题
给大家看几道C 小程序问道C内存的题?
白板代码,支持O(1)时间GetMin的stack请问怎么用Class实现Stack
CareerCup question谈谈面试中化归的思想
一道刚面的算法题悲剧的FB二面
一道小题问个google面试题
关于判断stack grows up or down那道题Ask a google interview question
Arista Networks面经Depth-First-Search
请问有面过arista networks的么?马上就要第二轮面试了,求教面经!Stack的Top方法可以返回const引用么?
相关话题的讨论汇总
话题: sp话题: int话题: what话题: printf话题: output
进入JobHunting版参与讨论
1 (共1页)
c********v
发帖数: 21
1
2 hours
ssh programming:
1. Write a generic [template ] stack class.
1.1 write the interface, [push,pop...]
1.2 implement push
1.3 how to use it for array of stacks.
2. what's the output of the following program
2.1
int main() {
char * s="12345";
printf("%d\n",s);
}
what is the output?
what is the value in memory of the byte that is pointed by s?
2.2
int get() {
static int n = 0;
return ++n;
}
int printf( char const * fmt, ... ) {
// breakpoint
...
}
int main() {
printf ( "%d %d\n", get(), get() );
}
what is the output?
why? what is the stack layout during the time of breakpoint?
RIGHT-TO-LEFT stack(top)
sp:
sp+4:
sp+8:
sp+12:
sp+16: <-- first thing pushed, last to be popped
(bottom)
s****n
发帖数: 220
2
cong~感谢lz,太及时了,半个小时后就要面了,
顺便问下,这个公司如何啊。。
1 (共1页)
进入JobHunting版参与讨论
相关主题
Stack的Top方法可以返回const引用么?一道小题
问Tarjan's Strong Connected Component中的关于判断stack grows up or down那道题
Two sigma onsite 是不是四轮才有希望,更新面经Arista Networks面经
M onsite面经请问有面过arista networks的么?马上就要第二轮面试了,求教面经!
给大家看几道C 小程序问道C内存的题?
白板代码,支持O(1)时间GetMin的stack请问怎么用Class实现Stack
CareerCup question谈谈面试中化归的思想
一道刚面的算法题悲剧的FB二面
相关话题的讨论汇总
话题: sp话题: int话题: what话题: printf话题: output