Skip to main content

标  题: FLAG Yelp Uber Palantir等公司面经(更新Lyft)

http://gengwg.blogspot.com/

我的博客

[回复] [回信给作者] [本篇全文] [本讨论区] [修改] [删除] [转寄] [转贴] [收藏] [举报] [ 1 ]
发信人: wangya (fgdsb), 信区: JobHunting
标  题: FLAG Yelp Uber Palantir等公司面经(更新Lyft)
关键字: FLAG,面经
发信站: BBS 未名空间站 (Mon Apr 13 23:50:31 2015, 美东)

我LD最近面了一堆公司,下面发她的面经攒人品。基本都是电面和onsite混着发的。

Google:
1. Wildcard match
2. http://www.fgdsb.com/2015/01/25/peek-iterator/类似。写一个de duplicator,wrap 几个stream,输出的stream全是不重复数字。
3. 求一个stream,出现次数最多的数字。然后扩展到N个machine的情况。
4. 假设某个company在不同国家都有office,每个国家的office,如果是当地的假期,
就可以放假了。假设可以查询任意航班的信息,每个星期只能呆在一个地方,只有周末
的时候才能飞去别的国家。找一个放假天数最多的schedule。
5. LRU + 一些 C++问题。
6. 这题记不大清楚了。好像是Longest increasing consecutive sequence, 然后一
个Tree的该进版。求longest increasing consecutive path。
7. file system design。就是设计一个大数据的存取问题。存在disk上。我就是
partition + hash + cache那一套糊弄过去了。

Facebook:
因为签offer了,就不说太详细了。基本都是常见题甚至LC原题。但是follow up问的很
多,基本上常见题能用多种方法做的都会全问你一遍。比如问了一题count and say,
老掉牙的题了,写出代码还让证明any count不会超过三。比如1 11 21所有的digit都
不大于3。

Machine Zone:
1. sort color。
2. 有两个设计api的题目,具体的忘记了,都不难就对了。
3. 有两轮纯写query。问了些perfomance的问题,主要就是index的原理。写个几个很
长的query,一个一黑板那种变态的。
4. 一个leetcode medium的dp问题。
5. linkedin word distance 那题
/* This class will be given a list of words (such as might be tokenized
* from a paragraph of text), and will provide a method that takes two
* words and returns the shortest distance (in words) between those two
* words in the provided text.
* Example:
*   WordDistanceFinder finder = new WordDistanceFinder(Arrays.asList("the",
"quick", "brown", "fox", "quick"));
*   assert(finder.distance("fox","the") == 3);
*   assert(finder.distance("quick", "fox") == 1);
*/

Pure Storage:
一模一样的题目!!
http://www.mitbbs.com/article_t/JobHunting/32702941.html
多了一道,设计c++ virtual mechanism的design。虽然看过一点,知道的不多。但是
会逐渐给提示,follow hint就可以。pure storage喜欢一个题用好几种方法解,每个
题目都让不断的优化优化。

Uber:
1. regex match
2. 实现trie
3. youtube architecture设计。
4. 聊天。
5. min stack

Palantir:
1. 判断长度为K的substr有木有重复的字符。
2. LRU
3. 有个grid,每个cell记录的是click的次数,0或者大于0。求点击次数最多的region
。每个region的定义,是非零连续的一片。
4. 设计asteroid 游戏。
5. 实现一个纸牌游戏的logic。每人拿出最上面那张,比较大小,最大的胜出,winner
可以搜刮走loser打出的牌。如果有俩人的牌一样大,就比较上面数第四章的牌。  直
到某个人赢得了所有的牌
6. system design。distributed hash table
7. stock price。
                5/6      5/7   5/8
Stock1 :  100               200
Stock2:               50     100
Stock3:   150      200
Output:    250     350    500
空格代表价格没变化,跟前一天一样。如果第一天的为空,价格为0

ServiceNow:
1.各种概念啊!! Javascript, Angular.js, SQL
2. 发过来code,让改bug优化。
3.又是各种概念啊。Javascript, Angular.js, SQL。还有自己project的介绍

BigCommerce:
1. 聊天3轮。聊project。我的project,他们的project
2. leetcode上absolute path那题。
3. 有一轮,算是system design吧。让设计他们的payment系统。

Amazon:
1. 竟然安排我面试QA。理所当然的挂了。问了一道很简单的hashtable的题目,然后问
我怎么测试amazon web page。。
2. 概念:hashtable 实现方式。
代码: 拓扑排序。
还写了个电话号码的regex expression。
电面就挂了,没onsite。

Linkedin:
1. Word distance
2. 2 sum
3.
/**
* Given a nested list of integers, returns the sum of all integers in the
list weighted by their depth
* For example, given the list {{1,1},2,{1,1}} the function should return 10
(four 1's at depth 2, one 2 at depth 1)
* Given the list {1,{4,{6}}} the function should return 27 (one 1 at depth 1
, one 4 at depth 2, and one 6 at depth 3)
*/
4. permutation
5. reverse word in string (in place)
6. system design 类似这个
http://www.shuatiblog.com/blog/2015/01/09/big-data-real-time-to
7. 问project。把我问跪了。他们问的非常非常详细。我只准备了architecture,明显
不够用。一些具体logic也得准备。
8. minimum window substring
9. sqrt int + double版

Yelp:
1. Word ladder 2
2. 密码的combination。 phone number combination变体
3. 拓扑排序:一堆package,有dependency。求个安装顺序
4. permutation + combination合体,具体的太久忘记了,反正不难。
5. valid json。判断string是不是valid json object
跟版上很多人一样,题都不难,自我感觉良好。最后悲剧。

Lyft:
电面
* function to determine whether the driver is allowed to enter driver mode
* drivers are not allowed to drive a total of 12 hours without an 8 hour
break
* the function inputs are:
- a list of driver shifts as start/end integers, the integer is relative to
lyft launch
- the current time since lyft launch as integer

def can_drive(history, current_time):
    """
    Returns true if the driver has driven less than 12 hours since their
last 8 hour break
   
    history|array - Shifts, e.g. [(0, 12), (13, 19)]
    current_time|int - Current timestamp as hour since Lyft launch, e.g. 50

    can_drive = True example
        # 9 hour break, 1 hour shift, 2 hour break, 10 hour shift
        history = [(9, 10), (12, 22)]
        current_time = 24

    can_drive = False example:
        history = [(0, 4), (5, 9), (10, 14), (15, 19), (20, 24)]
        current_time = 24

没拿到onsite。

----------------

准备的话,虽然还是以leetcode为主,我协助她找工作也帮她做了一些事情,大家如果
觉得有用也可以看看:

1. 博客:http://www.fgdsb.com
这里面收集了不少leetcode没有的但是近期比较高频的面经题,我也提供了一些参考解
法。
当然有个别题的个别解法已经有热心观众指出错误了,但是由于我最近课比较多还没有
改,有空了一定改正,本人也不是搞竞赛出身,大牛求绕道。

2. 本地刷题平台:https://github.com/wangyanxing/Judge-at-fgdsb
现在支持mac和windows(windows启动速度比较慢)系统。类似于leetcode的本地版,
收集我博客里面大约40道比较常见的且LC没有的题并提供了测试案例和Judge功能。现
在支持C++/Java/Python/Lua/Ruby语言,当然你本地要有能运行的compiler。
现在还不是特别完善,但是已经完全可以用了,我还加了print功能,这个调试起来比
lc方便。有空我会把二叉树的visualization做了,相信大家对LC的 12##3#4 这种二叉
树表示方法不爽很久了哈哈。
release链接在这里:https://github.com/wangyanxing/Judge-at-fgdsb/releases

Comments

Popular posts from this blog

OWASP Top 10 Threats and Mitigations Exam - Single Select

Last updated 4 Aug 11 Course Title: OWASP Top 10 Threats and Mitigation Exam Questions - Single Select 1) Which of the following consequences is most likely to occur due to an injection attack? Spoofing Cross-site request forgery Denial of service   Correct Insecure direct object references 2) Your application is created using a language that does not support a clear distinction between code and data. Which vulnerability is most likely to occur in your application? Injection   Correct Insecure direct object references Failure to restrict URL access Insufficient transport layer protection 3) Which of the following scenarios is most likely to cause an injection attack? Unvalidated input is embedded in an instruction stream.   Correct Unvalidated input can be distinguished from valid instructions. A Web application does not validate a client’s access to a resource. A Web action performs an operation on behalf of the user without checking a shared sec

CKA Simulator Kubernetes 1.22

  https://killer.sh Pre Setup Once you've gained access to your terminal it might be wise to spend ~1 minute to setup your environment. You could set these: alias k = kubectl                         # will already be pre-configured export do = "--dry-run=client -o yaml"     # k get pod x $do export now = "--force --grace-period 0"   # k delete pod x $now Vim To make vim use 2 spaces for a tab edit ~/.vimrc to contain: set tabstop=2 set expandtab set shiftwidth=2 More setup suggestions are in the tips section .     Question 1 | Contexts Task weight: 1%   You have access to multiple clusters from your main terminal through kubectl contexts. Write all those context names into /opt/course/1/contexts . Next write a command to display the current context into /opt/course/1/context_default_kubectl.sh , the command should use kubectl . Finally write a second command doing the same thing into /opt/course/1/context_default_no_kubectl.sh , but without the use of k

标 题: 关于Daniel Guo 律师

发信人: q123452017 (水天一色), 信区: I140 标  题: 关于Daniel Guo 律师 关键字: Daniel Guo 发信站: BBS 未名空间站 (Thu Apr 26 02:11:35 2018, 美东) 这些是lz根据亲身经历在 Immigration版上发的帖以及一些关于Daniel Guo 律师的回 帖,希望大家不要被一些马甲帖广告帖所骗,慎重考虑选择律师。 WG 和Guo两家律师对比 1. fully refund的合约上的区别 wegreened家是case不过只要第二次没有file就可以fully refund。郭家是要两次case 没过才给refund,而且只要第二次pl draft好律师就可以不退任何律师费。 2. 回信速度 wegreened家一般24小时内回信。郭律师是在可以快速回复的时候才回复很快,对于需 要时间回复或者是不愿意给出确切答复的时候就回复的比较慢。 比如:lz问过郭律师他们律所在nsc区域最近eb1a的通过率,大家也知道nsc现在杀手如 云,但是郭律师过了两天只回复说让秘书update最近的case然后去网页上查,但是上面 并没有写明tsc还是nsc。 lz还问过郭律师关于准备ps (他要求的文件)的一些问题,模版上有的东西不是很清 楚,但是他一般就是把模版上的东西再copy一遍发过来。 3. 材料区别 (推荐信) 因为我只收到郭律师写的推荐信,所以可以比下两家推荐信 wegreened家推荐信写的比较长,而且每封推荐信会用不同的语气和风格,会包含lz写 的research summary里面的某个方面 郭家四封推荐信都是一个格式,一种语气,连地址,信的称呼都是一样的,怎么看四封 推荐信都是同一个人写出来的。套路基本都是第一段目的,第二段介绍推荐人,第三段 某篇或几篇文章的abstract,最后结论 4. 前期材料准备 wegreened家要按照他们的模版准备一个十几页的research summary。 郭律师在签约之前说的是只需要准备五页左右的summary,但是在lz签完约收到推荐信 ,郭律师又发来一个很长的ps要lz自己填,而且和pl的格式基本差不多。 总结下来,申请自己上心最重要。但是如果选律师,lz更倾向于wegreened,