![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java语言
文章平均质量分 78
CareerBowl
CareerBowl 职业碗
展开
-
Top 10 Algorithms for Coding Interview 面试十大算法总结
The following are top 10 algorithms related topics for coding interviews. As understanding those concepts requires much more effort, this list below only serves as an introduction. They are viewed fro转载 2014-04-26 22:39:20 · 620 阅读 · 0 评论 -
[leetCode] LRU Cache (Java)
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.get(key) – Get the value (will always be positive) of the key if原创 2014-04-26 20:52:30 · 944 阅读 · 0 评论 -
Java 中String的HashCode计算方法
/** * Returns a hash code for this string. The hash code for a * String object is computed as * * s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1] * * usi原创 2014-05-13 21:33:11 · 7342 阅读 · 0 评论 -
[LeetCode] Longest Consecutive Sequence
描述Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example, Given [100, 4, 200, 1, 3, 2], The longest consecutive elements sequence is [1,2,原创 2014-05-12 21:15:11 · 334 阅读 · 0 评论 -
[LeetCode] Two Sum
描述Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to the target, w原创 2014-05-12 21:35:21 · 406 阅读 · 0 评论