摘要:
Problem Description:Given an array of integers that is alreadysorted in ascending order, find two numbers such that they add up to a specific target n... 阅读全文
posted @ 2015-06-08 23:11
jianchao-li
阅读(283)
评论(0)
推荐(0)
摘要:
Again, a classic interview question of linked list. Similar to Linked List Cycle, we maintain two pointers fast and slow: fastmove two steps at one ti... 阅读全文
posted @ 2015-06-08 22:26
jianchao-li
阅读(200)
评论(0)
推荐(0)
摘要:
A classic interview question of linked list. The idea is to maintain two pointers, one move one step at a time and the other move two steps at a time.... 阅读全文
posted @ 2015-06-08 22:06
jianchao-li
阅读(165)
评论(0)
推荐(0)
摘要:
This problem has a long story. There are just too many solutions on the web and it can be studied for a long time before you fully grasp it. Morever, ... 阅读全文
posted @ 2015-06-08 21:57
jianchao-li
阅读(321)
评论(0)
推荐(0)
摘要:
This is a classic problem for hash table. The basic idea is to maintain a hash table for each element innums, using the element as key and its index (... 阅读全文
posted @ 2015-06-08 17:22
jianchao-li
阅读(208)
评论(0)
推荐(0)
摘要:
Well, this problem looks easy at first glance. However, to get a bug-free code may be not that easy.The total square is simply equal to the sum of the... 阅读全文
posted @ 2015-06-08 14:24
jianchao-li
阅读(330)
评论(0)
推荐(0)

浙公网安备 33010602011771号