摘要: Question: Given an arraySofnintegers, are there elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplets in the array which gives t... 阅读全文
posted @ 2015-09-06 19:48 江湖小妞 阅读(218) 评论(0) 推荐(0) 编辑
摘要: Question: 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... 阅读全文
posted @ 2015-09-06 15:43 江湖小妞 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Question:Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked list is1 -> 2... 阅读全文
posted @ 2015-09-06 11:16 江湖小妞 阅读(160) 评论(0) 推荐(0) 编辑