avatar
google电面面经# JobHunting - 待字闺中
C*U
1
设计
class webcounter {
void increment();
int lastmin();
int lasthour();
int lastday();
}
打印函数
奇数行完全打印
偶数行隔一个打印
设计那里讨论了半天。
最后匆匆结束了。咋觉得挂了呢。
一般多久能知道能不能进下一轮?
avatar
e*s
2
大牛能不能讲一下第一题。
第二题是这样吗?
if(row % 2 != 0)
print(row);
if(row % 4 == 0)
print(row);
avatar
p*2
3
G的电面一般比较松,不用担心。
avatar
g*e
4
last min/hour/day访问最多的,median,全部urls?

【在 C***U 的大作中提到】
: 设计
: class webcounter {
: void increment();
: int lastmin();
: int lasthour();
: int lastday();
: }
: 打印函数
: 奇数行完全打印
: 偶数行隔一个打印

avatar
C*U
5
第二题是这样的 比如我有两行
this is first line
this is second line
打印出来
this is first line
this second
然后让说test case
我就说了
empty
odd number of lines
even number of lines
然后line里面的word个数可以是
empty
odd number
even number

【在 e***s 的大作中提到】
: 大牛能不能讲一下第一题。
: 第二题是这样吗?
: if(row % 2 != 0)
: print(row);
: if(row % 4 == 0)
: print(row);

avatar
e*s
6
哦,看懂了,谢谢

【在 C***U 的大作中提到】
: 第二题是这样的 比如我有两行
: this is first line
: this is second line
: 打印出来
: this is first line
: this second
: 然后让说test case
: 我就说了
: empty
: odd number of lines

avatar
f*7
7
楼主是网投吗?多久拿到phone的?
avatar
C*U
8
refer的
很久才拿到phone
不要上来就挂了 那就郁闷了
咋不给我考算法。。。设计这个太郁闷了

【在 f*****7 的大作中提到】
: 楼主是网投吗?多久拿到phone的?
avatar
C*U
9
google HR倒是挺nice的 写信回的贼快啊。。。。

【在 f*****7 的大作中提到】
: 楼主是网投吗?多久拿到phone的?
avatar
l*a
10
对他来说回信就是工作,跟咱们在这里关税热情一样高

【在 C***U 的大作中提到】
: google HR倒是挺nice的 写信回的贼快啊。。。。
avatar
C*U
11
哈哈

【在 l*****a 的大作中提到】
: 对他来说回信就是工作,跟咱们在这里关税热情一样高
avatar
c*t
12
第二题,read source是file, string or input?

【在 C***U 的大作中提到】
: 设计
: class webcounter {
: void increment();
: int lastmin();
: int lasthour();
: int lastday();
: }
: 打印函数
: 奇数行完全打印
: 偶数行隔一个打印

avatar
C*U
13
input

【在 c********t 的大作中提到】
: 第二题,read source是file, string or input?
avatar
h*u
14
bless
avatar
m*r
15
大牛,好佩服

【在 p*****2 的大作中提到】
: G的电面一般比较松,不用担心。
avatar
h*n
16
多谢分享:)
avatar
j*g
17

input是什么啊。。。是指ifstream然后可以用getline吗???
还有web count这个到底怎么设计好啊?同没经验。。。
忘各位大侠指点~

【在 C***U 的大作中提到】
: input
avatar
C*U
18
设计
class webcounter {
void increment();
int lastmin();
int lasthour();
int lastday();
}
打印函数
奇数行完全打印
偶数行隔一个打印
设计那里讨论了半天。
最后匆匆结束了。咋觉得挂了呢。
一般多久能知道能不能进下一轮?
avatar
e*s
19
大牛能不能讲一下第一题。
第二题是这样吗?
if(row % 2 != 0)
print(row);
if(row % 4 == 0)
print(row);
avatar
p*2
20
G的电面一般比较松,不用担心。
avatar
g*e
21
last min/hour/day访问最多的,median,全部urls?

【在 C***U 的大作中提到】
: 设计
: class webcounter {
: void increment();
: int lastmin();
: int lasthour();
: int lastday();
: }
: 打印函数
: 奇数行完全打印
: 偶数行隔一个打印

avatar
C*U
22
第二题是这样的 比如我有两行
this is first line
this is second line
打印出来
this is first line
this second
然后让说test case
我就说了
empty
odd number of lines
even number of lines
然后line里面的word个数可以是
empty
odd number
even number

【在 e***s 的大作中提到】
: 大牛能不能讲一下第一题。
: 第二题是这样吗?
: if(row % 2 != 0)
: print(row);
: if(row % 4 == 0)
: print(row);

avatar
e*s
23
哦,看懂了,谢谢

【在 C***U 的大作中提到】
: 第二题是这样的 比如我有两行
: this is first line
: this is second line
: 打印出来
: this is first line
: this second
: 然后让说test case
: 我就说了
: empty
: odd number of lines

avatar
f*7
24
楼主是网投吗?多久拿到phone的?
avatar
C*U
25
refer的
很久才拿到phone
不要上来就挂了 那就郁闷了
咋不给我考算法。。。设计这个太郁闷了

【在 f*****7 的大作中提到】
: 楼主是网投吗?多久拿到phone的?
avatar
C*U
26
google HR倒是挺nice的 写信回的贼快啊。。。。

【在 f*****7 的大作中提到】
: 楼主是网投吗?多久拿到phone的?
avatar
l*a
27
对他来说回信就是工作,跟咱们在这里关税热情一样高

【在 C***U 的大作中提到】
: google HR倒是挺nice的 写信回的贼快啊。。。。
avatar
C*U
28
哈哈

【在 l*****a 的大作中提到】
: 对他来说回信就是工作,跟咱们在这里关税热情一样高
avatar
c*t
29
第二题,read source是file, string or input?

【在 C***U 的大作中提到】
: 设计
: class webcounter {
: void increment();
: int lastmin();
: int lasthour();
: int lastday();
: }
: 打印函数
: 奇数行完全打印
: 偶数行隔一个打印

avatar
C*U
30
input

【在 c********t 的大作中提到】
: 第二题,read source是file, string or input?
avatar
h*u
31
bless
avatar
m*r
32
大牛,好佩服

【在 p*****2 的大作中提到】
: G的电面一般比较松,不用担心。
avatar
h*n
33
多谢分享:)
avatar
j*g
34

input是什么啊。。。是指ifstream然后可以用getline吗???
还有web count这个到底怎么设计好啊?同没经验。。。
忘各位大侠指点~

【在 C***U 的大作中提到】
: input
avatar
l*h
35
设计题有什么讲究?
直接维护4个计数器就行了?如果要求thread safe的话,加一个lock在写的时候保护起
来。

【在 C***U 的大作中提到】
: 设计
: class webcounter {
: void increment();
: int lastmin();
: int lasthour();
: int lastday();
: }
: 打印函数
: 奇数行完全打印
: 偶数行隔一个打印

avatar
l*h
36
设计题有什么讲究?
直接维护4个计数器就行了?如果要求thread safe的话,加一个lock在写的时候保护起
来。

【在 C***U 的大作中提到】
: 设计
: class webcounter {
: void increment();
: int lastmin();
: int lasthour();
: int lastday();
: }
: 打印函数
: 奇数行完全打印
: 偶数行隔一个打印

avatar
M*r
37
哪位大牛能分析下第一题如何设计吗?
avatar
z*e
38
第一题说过太多遍
第四次看到了
avatar
n*p
39
第一题哪位大牛给个完整的solution? 貌似出现频率很高啊。
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。