由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - T家 :: 面筋
相关主题
请教几个面试问题Amazon电面题目
LRU cache 问题L家和G家的几道面试题不懂
如何提高算法能力sumo logic的开放型设计题,设计一个cache system
Google Interview Questionlinux怎么读入一个超过有超过1B integer的binary file?
question about Leetcode #113 LeetCode – Path Sum II (Java)Entry-level EE/CS job opportunity in Sillicon Valley
请教几道对我来说高深的面试题[系统设计]关于流量限制访问
PayPal User & on Boarding组 staff 1面经问三个问题,大大们帮忙看一下
一道面试算法题问一个twitter 问题
相关话题的讨论汇总
话题: implement话题: sum话题: cell话题: key
进入JobHunting版参与讨论
1 (共1页)
S********e
发帖数: 28
1
攢人品及回報本版的幫助。
=== PS 1 ===
1. Similar to 'Combination Sum I/II' on Leetcode.
=== PS 2 ===
1. Similar to 'Design/Implement LRU Cache'. Key requirements: efficient look
-up while maintaining insertion order.
2. Figure out potential concurrent issues for a code segment. Key
observations: use 'wait/notify' instead of 'sleep' for coordination between
threads.
=== Onsite ===
1. Given a 2D array of integers, determine if it is possible to go from one
cell to another cell following non-descreasing path.
2. Partition integer array into 3 parts (<, =, >) in O(n) one pass in-place.
3. Lunch interview with hiring manager.
4. 2-Sum, 3-Sum
5. Implement 'put' and 'getMedian' APIs for processing data streams.
6. How to implement getGlobalUniqueId() API.
质略谌耍墒略谔欤〈蠹壹佑停
s********u
发帖数: 1109
2
'Design/Implement LRU Cache'这个题到处都在问啊,应该就是list+hashtable吧
S********e
发帖数: 28
3
應該行。如果用java,可以用LinkedHashmap,感覺當時考官一聽這個,就很順了。
s********u
发帖数: 1109
4
嗯 是的。但我感觉说linkedhashmap的话,像作弊一样,就完全没有自己设计的成分了
。。。当然这个东西其实就是hashmap+linkedlist

【在 S********e 的大作中提到】
: 應該行。如果用java,可以用LinkedHashmap,感覺當時考官一聽這個,就很順了。
k*********6
发帖数: 738
5
能冒昧问下楼主申的是哪个方向或组吗?如果不想再版上说能请发到站内信箱吗? 多
谢。
s*****n
发帖数: 994
6
楼主怎么拿到interview机会的啊?T家都不理我

look
between

【在 S********e 的大作中提到】
: 攢人品及回報本版的幫助。
: === PS 1 ===
: 1. Similar to 'Combination Sum I/II' on Leetcode.
: === PS 2 ===
: 1. Similar to 'Design/Implement LRU Cache'. Key requirements: efficient look
: -up while maintaining insertion order.
: 2. Figure out potential concurrent issues for a code segment. Key
: observations: use 'wait/notify' instead of 'sleep' for coordination between
: threads.
: === Onsite ===

s*****n
发帖数: 994
7
楼主怎么拿到interview机会的啊?T家都不理我

look
between

【在 S********e 的大作中提到】
: 攢人品及回報本版的幫助。
: === PS 1 ===
: 1. Similar to 'Combination Sum I/II' on Leetcode.
: === PS 2 ===
: 1. Similar to 'Design/Implement LRU Cache'. Key requirements: efficient look
: -up while maintaining insertion order.
: 2. Figure out potential concurrent issues for a code segment. Key
: observations: use 'wait/notify' instead of 'sleep' for coordination between
: threads.
: === Onsite ===

w********s
发帖数: 214
8
那个LRU的hashmap+linkedlist方法有没有比较详细的说明呢?望大牛分享下,谢谢
n****e
发帖数: 678
9
赞!
s********u
发帖数: 1109
10
看cc150的ood那一章,有一个题。
其实最简单的,你搜下 lru cache implementation不就完了。再搜索下linkedhashmap
。现在我感觉最有效率的学习来源,就是stackoverflow。

【在 w********s 的大作中提到】
: 那个LRU的hashmap+linkedlist方法有没有比较详细的说明呢?望大牛分享下,谢谢
相关主题
请教几道对我来说高深的面试题Amazon电面题目
PayPal User & on Boarding组 staff 1面经L家和G家的几道面试题不懂
一道面试算法题sumo logic的开放型设计题,设计一个cache system
进入JobHunting版参与讨论
l*n
发帖数: 529
11
SO上对问题的解释有竞争性,所以很容易找到把问题解释得很清楚的答案。这时候最大
的问题就是自己找对问题。:D

linkedhashmap

【在 s********u 的大作中提到】
: 看cc150的ood那一章,有一个题。
: 其实最简单的,你搜下 lru cache implementation不就完了。再搜索下linkedhashmap
: 。现在我感觉最有效率的学习来源,就是stackoverflow。

S********e
发帖数: 28
12
我的面試機會是朋友內推的。大家好運啊!
g***9
发帖数: 159
13
6. How to implement getGlobalUniqueId() API.
这道题没能理解问的意思... 求解释, 谢谢!
m*****y
发帖数: 120
14
1. Given a 2D array of integers, determine if it is possible to go from one
cell to another cell following non-descreasing path.
How to work on this one? Is it simply a BSF search with some restriction on
each step?
s********u
发帖数: 1109
15
I think this should be Leetcode:unique path.

one
on

【在 m*****y 的大作中提到】
: 1. Given a 2D array of integers, determine if it is possible to go from one
: cell to another cell following non-descreasing path.
: How to work on this one? Is it simply a BSF search with some restriction on
: each step?

m*****y
发帖数: 120
16
But this only ask for exist a path or not, plus, it has restriction on where
it can move to. (the Backtracking Solution doesn't help too much, basically
it search from end to start instead, which is the same as search from start
to end)

cell to another cell following non-descreasing path.

【在 s********u 的大作中提到】
: I think this should be Leetcode:unique path.
:
: one
: on

l*n
发帖数: 529
17
这个跟迷宫没差别吧,bfs或者dfs搜就好了。

one
on

【在 m*****y 的大作中提到】
: 1. Given a 2D array of integers, determine if it is possible to go from one
: cell to another cell following non-descreasing path.
: How to work on this one? Is it simply a BSF search with some restriction on
: each step?

1 (共1页)
进入JobHunting版参与讨论
相关主题
问一个twitter 问题question about Leetcode #113 LeetCode – Path Sum II (Java)
FG题目包子求教--read4096请教几道对我来说高深的面试题
速招data platform ArchitectPayPal User & on Boarding组 staff 1面经
Google电面一道面试算法题
请教几个面试问题Amazon电面题目
LRU cache 问题L家和G家的几道面试题不懂
如何提高算法能力sumo logic的开放型设计题,设计一个cache system
Google Interview Questionlinux怎么读入一个超过有超过1B integer的binary file?
相关话题的讨论汇总
话题: implement话题: sum话题: cell话题: key