由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - bloomberg面试经历
相关主题
请教一道careercup 150上的题Ask a amazon question from careercup.
问一道老题问下careercup上的这一题
Google 面试题 一道看到一个题目
CareerCup 上一道老题careercup书上一道题:判断直线相交
问一道google题(from careercup)FLAG面试总结
One question on CareercupGoogle电话面试题目
bit manipulation 小题问大家关于编程的经验
find missing numbersin given billion number请教一道题目
相关话题的讨论汇总
话题: number话题: int话题: given话题: worst
进入JobHunting版参与讨论
1 (共1页)
v******a
发帖数: 54
1
1. online
做过一边题型就知道了
careercup上有一些online test的题目
2. phone
忘记了,主要是c++的,careercup上和本版上有
3. onsite
a. 两个engineer,一个黑人,一个亚裔(还挺帮忙的)
黑人出了2个题目
1. reverse a int number given a int number
int reverseint(int);
[a. overflow, b. negative number]
2. given a list of scores of students, get the frequence of scores in order.
[use c++ container map]
亚裔
1.difference between assignment operator and copy constructor
2. how to use map, map.find,
3. difference between i++, ++i, which one is more efficient.
Manager
1. Given two sorted integer array, how to find the intersection.
what is best comparision number and worst comparison number.
HR:
common questions
c***2
发帖数: 838
2
"Given two sorted integer array, how to find the intersection.
what is best comparision number and worst comparison number."
1) No intersect O(1)
AAAAAAAAABBBBBBBBBBBB or BBBBBBBBBAAAAAAAAAAAA
2) Then Binary search for either case: O(logN)
AAAAAAAAAAAA
BBBBBBBBBBBBB
====K==
or
AAAAAAAAAAA
BBBBBBBBBBB
=K==
3) Then binary search overlapping part K*LogK
So
Best O(1)
Worst nlogn
y*******o
发帖数: 6632
3
1. reverse a int number given a int number
int reverseint(int);
how to solve this problem? 300 to 3? 3000 also to 3?
if 10>a>-10 then return a?
Thanks.

【在 v******a 的大作中提到】
: 1. online
: 做过一边题型就知道了
: careercup上有一些online test的题目
: 2. phone
: 忘记了,主要是c++的,careercup上和本版上有
: 3. onsite
: a. 两个engineer,一个黑人,一个亚裔(还挺帮忙的)
: 黑人出了2个题目
: 1. reverse a int number given a int number
: int reverseint(int);

d******a
发帖数: 238
4
reverse a int number given a int number
how do you determine overflow(see the leftmost bit or compare with INT_MAX)?
if overflowed, what should we do? just give the error message?
. Given two sorted integer array, how to find the intersection.
what is best comparision number and worst comparison number.
best: length of the shorter array ?
worst: O(m + n) ?
1 (共1页)
进入JobHunting版参与讨论
相关主题
请教一道题目问一道google题(from careercup)
分享下Google电面题One question on Careercup
facebook面试bit manipulation 小题
请教一个面试题find missing numbersin given billion number
请教一道careercup 150上的题Ask a amazon question from careercup.
问一道老题问下careercup上的这一题
Google 面试题 一道看到一个题目
CareerCup 上一道老题careercup书上一道题:判断直线相交
相关话题的讨论汇总
话题: number话题: int话题: given话题: worst