由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Computation版 - 明天面試engineer工作, 自己沒學過CS.
相关主题
Ask help for a simple question并行的fft大家用什么library?
Efficiency of Maple to Matlabhuman brain mapping 2011 hotel share
Re: [转载] How to visualize multivariate d大家还是bilingual吧
这个怎么弄?Anybody use PETSc?
Regularized Beta function?有人用 NumPy 来计算吗
大家有没有什么好方法计算gradient啊?关于Python的矩阵包
robust optimization given uncertaintiesOctave还是SciLab
求教一个算法问题,1-1 mapping跪求,用python上传一个文件到服务器的例子
相关话题的讨论汇总
话题: python话题: given话题: array话题: 面試话题: find
进入Computation版参与讨论
1 (共1页)
e*****u
发帖数: 67
1
自己不是CS專業,只學過一門數據結構,會一些Python.
明天on-site面試一個engineer工作。 臨時抱佛腳。
如果明天當場要寫code,估計只能有Python硬着頭皮寫-
請教諸位大俠, 下面這幾道題用Python怎麼寫-
1) Describe recursive mergesort and its runtime. Write an iterative
version in Python.
2) Given an array of numbers, replace each number with the product of
all the numbers in the array except the number itself *without* using
division.
3) Write a program to find depth of binary search tree without using
recursion.
4) Efficiently implement 3 stacks in a single array.
5) Given an array of integers which is circularly sorted, how do you
find a given integer.
6) Find the maximum rectangle (in terms of area) under a histogram in
linear time.
7) Most phones now have full keyboards. Before there there three letters
mapped to a number button. Describe how you would go about implementing
spelling and word suggestions as people type.
8) How would you determine if someone has won a game of tic-tac-toe on a
board of any size?
9) Create a cache with fast look up that only stores the N most recently
accessed items.
10) How to design a search engine? If each document contains a set of
keywords, and is associated with a numeric attribute, how to build
indices?
11) Given two files that has list of words (one per line), write a
program to show the intersection.
12) What kind of data structure would you use to index annagrams of
words? e.g. if there exists the word “top” in the database, the query
for “pot” should list that.
------------
多謝各位。 明天面試回來,一定來回報一下!
l********a
发帖数: 1154
2
这几个问题用python基本都不算问题,py的数据结构太省心了关键
t*****n
发帖数: 4908
3
什么工作?能详细说下吗?
e*****u
发帖数: 67
4
自己不是CS專業,只學過一門數據結構,會一些Python.
明天on-site面試一個engineer工作。 臨時抱佛腳。
如果明天當場要寫code,估計只能有Python硬着頭皮寫-
請教諸位大俠, 下面這幾道題用Python怎麼寫-
1) Describe recursive mergesort and its runtime. Write an iterative
version in Python.
2) Given an array of numbers, replace each number with the product of
all the numbers in the array except the number itself *without* using
division.
3) Write a program to find depth of binary search tree without using
recursion.
4) Efficiently implement 3 stacks in a single array.
5) Given an array of integers which is circularly sorted, how do you
find a given integer.
6) Find the maximum rectangle (in terms of area) under a histogram in
linear time.
7) Most phones now have full keyboards. Before there there three letters
mapped to a number button. Describe how you would go about implementing
spelling and word suggestions as people type.
8) How would you determine if someone has won a game of tic-tac-toe on a
board of any size?
9) Create a cache with fast look up that only stores the N most recently
accessed items.
10) How to design a search engine? If each document contains a set of
keywords, and is associated with a numeric attribute, how to build
indices?
11) Given two files that has list of words (one per line), write a
program to show the intersection.
12) What kind of data structure would you use to index annagrams of
words? e.g. if there exists the word “top” in the database, the query
for “pot” should list that.
------------
多謝各位。 明天面試回來,一定來回報一下!
l********a
发帖数: 1154
5
这几个问题用python基本都不算问题,py的数据结构太省心了关键
t*****n
发帖数: 4908
6
什么工作?能详细说下吗?
z**********6
发帖数: 68
7
以前面试Google的时候曾经被问第10题,感觉是如果你能答出跟倒排索引相关的算法的
话HR会很happy,倒排的资料上网搜一下应该不少
1 (共1页)
进入Computation版参与讨论
相关主题
跪求,用python上传一个文件到服务器的例子Regularized Beta function?
很痛苦,python, matlab, c++大家有没有什么好方法计算gradient啊?
Python下面如何进行numeric analysis and statistical analysis (转载)robust optimization given uncertainties
Python与科学计算求教一个算法问题,1-1 mapping
Ask help for a simple question并行的fft大家用什么library?
Efficiency of Maple to Matlabhuman brain mapping 2011 hotel share
Re: [转载] How to visualize multivariate d大家还是bilingual吧
这个怎么弄?Anybody use PETSc?
相关话题的讨论汇总
话题: python话题: given话题: array话题: 面試话题: find