摘要: Problem:Divide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INT.Analysis:The question is not har... 阅读全文
posted @ 2015-09-06 10:46 airforce 阅读(257) 评论(0) 推荐(0) 编辑
摘要: Problem:Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra spa... 阅读全文
posted @ 2015-09-06 07:24 airforce 阅读(328) 评论(0) 推荐(0) 编辑
摘要: Problem:Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2->1->4->3.Yo... 阅读全文
posted @ 2015-09-06 06:48 airforce 阅读(152) 评论(0) 推荐(0) 编辑
摘要: Problem:Given an arraySofnintegers, are there elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplets in the array which gives the... 阅读全文
posted @ 2015-09-06 05:21 airforce 阅读(138) 评论(0) 推荐(0) 编辑