avatar
c*e
1
最近面了几家公司
1, design short URL
2, ransom notes.
3, judge whether a string is a merge from other two strings,
4, implement lru cache
5, implement a library that dispatch jobs to a thread pool after a certain
delay. the amount of delay time is given in a parameter. only care about
single machine implementations.
6 social graph, find out whether any 2 nodes are within 3 hops. then how do
you define the schema (and how to partition the data) to store the graph to
minimize remote call in the above function.
7. several kind of bricks, each kind has a weight, and strength (weight of
bricks that can be laid on top). your have limited number of bricks from
each kind, find out the highest that you can lay the bricks.
8. a square of positive integers. when you are in one cell, you can move up
, down, left or right. find a path that start from 0,0 end with n,n where
the sum of cell values on the path is the smallest.
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。