L_J_SHOU

2014年2月21日

LeetCode----3 Sum

摘要: Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:Elemen... 阅读全文

posted @ 2014-02-21 22:43 L_J_SHOU 阅读(103) 评论(0) 推荐(0)
LeetCode----Reverse Nodes in k-Group

摘要: Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.If the number of nodes is not a multiple of k then le... 阅读全文

posted @ 2014-02-21 20:34 L_J_SHOU 阅读(101) 评论(0) 推荐(0)