
面试题
文章平均质量分 79
floatp
任尔东西南北风
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
每天算法 -- 乘积余 - hard
Uber:Given an array of integers, return a new array such that each element at index i of the new array is the product of all the numbers in the original array except the one at i.For example, ...原创 2019-05-16 17:59:28 · 176 阅读 · 0 评论 -
每天算法 -- 两数和 - easy
Google:这是谷歌很经典的一道题,在数组中寻找两个数,它们的和是否为k.基本上所有的算法题,都有一个暴力解。我们就先从暴力解法开始。注意:笔者会尽量使用新的C++语法来描述算法,而不是类C的代码风格。原创 2019-05-13 17:35:53 · 248 阅读 · 1 评论 -
每天算法 -- serialize and deserialize binary tree - medium
Google:Given the root to a binary tree, implement serialize(root),which serialize the tree into a string, and deserialize(s), which deserialize the string back into the tree.For example, given...原创 2019-05-22 16:59:37 · 122 阅读 · 0 评论 -
每天算法 -- first missing positive integer linear time const space -- hard
Stripe:Given an array of integers, find the first missing positive integer in linear time and constant space. In other words, find the lowest positive integer that does not exist in the array. The ...原创 2019-05-31 15:08:29 · 121 阅读 · 0 评论 -
每天算法 -- XOR linked list -- Hard
Google:An XOR linked list is a more memory efficient doubly linked list. Instead of each node holding next and prev fields, it holds a field named both, which is an XOR of the next node and the pre...原创 2019-06-06 16:15:49 · 314 阅读 · 0 评论