由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - updae: 明天GOOG电面, 求祝福 interview 问题
相关主题
Facebook interview 面经这题怎么做?
请教amazon面试题[面试题求教]remove common phrases from each sentence
G家店面狗家面经
问三道题面试题讨论
4sum的那道题四个月骑驴找马终于结束,发面经回馈本版
请教leetcode的gray code这道Amazon面试题怎么做
Leetcode一题(非OJ)L家的onsite面经(国人面试官还是不错的)
贡献1个A家3面的面经,被老印坑了问一个java的问题
相关话题的讨论汇总
话题: overlap话题: apple话题: goog话题: updae话题: memcopy
进入JobHunting版参与讨论
1 (共1页)
n***n
发帖数: 1037
1
希望能有大家的加油.也希望大家good luck.
Q1: write a function to implement the function memcopy
This one is not testing for the overlap. The interviewer asked how to optimize this loop. And you need to take into account the alignment issue.
Q2: Given two list of strings, find the commmon one.
list1:
apple
orange
list2:
apple
mongo
result:
apple
Update:
Many thanks for everyone's suport. I have passed the phone screen. Now I am moving to the next step.
j**7
发帖数: 59
2
bless~
g*******y
发帖数: 1930
3
bless!
我最近知道不少人电面拿到onsite的~希望lz成为下一个~
i****h
发帖数: 321
4
bless!
l********n
发帖数: 86
5
bless~
E*******0
发帖数: 465
6
+U
h***z
发帖数: 91
7
加油!

【在 n***n 的大作中提到】
: 希望能有大家的加油.也希望大家good luck.
: Q1: write a function to implement the function memcopy
: This one is not testing for the overlap. The interviewer asked how to optimize this loop. And you need to take into account the alignment issue.
: Q2: Given two list of strings, find the commmon one.
: list1:
: apple
: orange
: list2:
: apple
: mongo

x**y
发帖数: 70
8
good luck!
有空写写面经哦.

【在 n***n 的大作中提到】
: 希望能有大家的加油.也希望大家good luck.
: Q1: write a function to implement the function memcopy
: This one is not testing for the overlap. The interviewer asked how to optimize this loop. And you need to take into account the alignment issue.
: Q2: Given two list of strings, find the commmon one.
: list1:
: apple
: orange
: list2:
: apple
: mongo

r**m
发帖数: 163
9
bless!
我一会儿就面了,好紧张,bless myself!
k***e
发帖数: 556
10
不是太难 patpat

【在 n***n 的大作中提到】
: 希望能有大家的加油.也希望大家good luck.
: Q1: write a function to implement the function memcopy
: This one is not testing for the overlap. The interviewer asked how to optimize this loop. And you need to take into account the alignment issue.
: Q2: Given two list of strings, find the commmon one.
: list1:
: apple
: orange
: list2:
: apple
: mongo

相关主题
请教leetcode的gray code这题怎么做?
Leetcode一题(非OJ)[面试题求教]remove common phrases from each sentence
贡献1个A家3面的面经,被老印坑了狗家面经
进入JobHunting版参与讨论
r**u
发帖数: 1567
11
bless

【在 n***n 的大作中提到】
: 希望能有大家的加油.也希望大家good luck.
: Q1: write a function to implement the function memcopy
: This one is not testing for the overlap. The interviewer asked how to optimize this loop. And you need to take into account the alignment issue.
: Q2: Given two list of strings, find the commmon one.
: list1:
: apple
: orange
: list2:
: apple
: mongo

s*******r
发帖数: 197
12
bless
s********9
发帖数: 651
13
bless~~
n*****t
发帖数: 58
14
祝你成功!

【在 n***n 的大作中提到】
: 希望能有大家的加油.也希望大家good luck.
: Q1: write a function to implement the function memcopy
: This one is not testing for the overlap. The interviewer asked how to optimize this loop. And you need to take into account the alignment issue.
: Q2: Given two list of strings, find the commmon one.
: list1:
: apple
: orange
: list2:
: apple
: mongo

C**********n
发帖数: 100
15
第二题怎么做最好啊?
hash?

【在 n***n 的大作中提到】
: 希望能有大家的加油.也希望大家good luck.
: Q1: write a function to implement the function memcopy
: This one is not testing for the overlap. The interviewer asked how to optimize this loop. And you need to take into account the alignment issue.
: Q2: Given two list of strings, find the commmon one.
: list1:
: apple
: orange
: list2:
: apple
: mongo

k***e
发帖数: 556
16
第一题在programming版看到有人说如果他面人时必问
难道就是那外?

【在 n***n 的大作中提到】
: 希望能有大家的加油.也希望大家good luck.
: Q1: write a function to implement the function memcopy
: This one is not testing for the overlap. The interviewer asked how to optimize this loop. And you need to take into account the alignment issue.
: Q2: Given two list of strings, find the commmon one.
: list1:
: apple
: orange
: list2:
: apple
: mongo

c*********n
发帖数: 1057
17
除了handle不同的overlap外,还需要注意什么呢?

【在 k***e 的大作中提到】
: 第一题在programming版看到有人说如果他面人时必问
: 难道就是那外?

k***e
发帖数: 556
18
就是overlap 没其巧了吧

【在 c*********n 的大作中提到】
: 除了handle不同的overlap外,还需要注意什么呢?
C**********n
发帖数: 100
19
什么overlap,能说详细点吗?

【在 k***e 的大作中提到】
: 就是overlap 没其巧了吧
c*********n
发帖数: 1057
20
就是source 和 destination 有重合的部分

【在 C**********n 的大作中提到】
: 什么overlap,能说详细点吗?
相关主题
面试题讨论L家的onsite面经(国人面试官还是不错的)
四个月骑驴找马终于结束,发面经回馈本版问一个java的问题
这道Amazon面试题怎么做请教一个面试算法题
进入JobHunting版参与讨论
C**********n
发帖数: 100
21
谢谢,
请问那怎么避免重合呢?
加const可以吗?

【在 c*********n 的大作中提到】
: 就是source 和 destination 有重合的部分
c*********n
发帖数: 1057
22
不是避免是,检测重合,然后对重合的情况特殊处理

【在 C**********n 的大作中提到】
: 谢谢,
: 请问那怎么避免重合呢?
: 加const可以吗?

C**********n
发帖数: 100
23
谢谢,请问如何特殊处理呢?
是不是可以再malloc一个区间?

【在 c*********n 的大作中提到】
: 不是避免是,检测重合,然后对重合的情况特殊处理
C**********n
发帖数: 100
24
第二题怎么做最优啊?

【在 n***n 的大作中提到】
: 希望能有大家的加油.也希望大家good luck.
: Q1: write a function to implement the function memcopy
: This one is not testing for the overlap. The interviewer asked how to optimize this loop. And you need to take into account the alignment issue.
: Q2: Given two list of strings, find the commmon one.
: list1:
: apple
: orange
: list2:
: apple
: mongo

c*********n
发帖数: 1057
25
判断overlap的情况,一种是从后面开始copy一种从前面开始,你画个图就知道了

【在 C**********n 的大作中提到】
: 谢谢,请问如何特殊处理呢?
: 是不是可以再malloc一个区间?

C**********n
发帖数: 100
26
thanks,我想问的是判定overlap之后如何特殊处理。

【在 c*********n 的大作中提到】
: 判断overlap的情况,一种是从后面开始copy一种从前面开始,你画个图就知道了
c*********n
发帖数: 1057
27
我的理解就是一种从尾巴开始copy一种从头开始啊

【在 C**********n 的大作中提到】
: thanks,我想问的是判定overlap之后如何特殊处理。
C**********n
发帖数: 100
28
如果都有overlap呢?

【在 c*********n 的大作中提到】
: 我的理解就是一种从尾巴开始copy一种从头开始啊
m*****f
发帖数: 1243
29
按理说, memcopy不用考虑overlap的情况的, memmove才需要

【在 c*********n 的大作中提到】
: 判断overlap的情况,一种是从后面开始copy一种从前面开始,你画个图就知道了
m*****f
发帖数: 1243
30
第二题普通数据, 就简单的用hash table就可以了吧。
估计会延伸到海量数据, 那我想就是建trie最好

【在 C**********n 的大作中提到】
: 第二题怎么做最优啊?
相关主题
脸家电话面试面筋请教amazon面试题
出一道我发明的题,难度算简单吧。G家店面
Facebook interview 面经问三道题
进入JobHunting版参与讨论
r*****q
发帖数: 1511
31
good luck!
b***e
发帖数: 1419
32
trie

【在 C**********n 的大作中提到】
: 第二题怎么做最好啊?
: hash?

w*********l
发帖数: 1337
33
其实吧,memcpy是不应该handle overlap的。如果有overlap应该用memmove.

【在 c*********n 的大作中提到】
: 除了handle不同的overlap外,还需要注意什么呢?
g**u
发帖数: 583
34
good luck!!!
1 (共1页)
进入JobHunting版参与讨论
相关主题
问一个java的问题4sum的那道题
请教一个面试算法题请教leetcode的gray code
脸家电话面试面筋Leetcode一题(非OJ)
出一道我发明的题,难度算简单吧。贡献1个A家3面的面经,被老印坑了
Facebook interview 面经这题怎么做?
请教amazon面试题[面试题求教]remove common phrases from each sentence
G家店面狗家面经
问三道题面试题讨论
相关话题的讨论汇总
话题: overlap话题: apple话题: goog话题: updae话题: memcopy