摘要:
Problem:Given a sorted linked list, delete all duplicates such that each element appear only once. For example,Given 1->1->2, return 1->2.Given 1->1->... 阅读全文
posted @ 2015-07-16 16:51
尾巴草
阅读(120)
评论(0)
推荐(0)
摘要:
problem:Given a linked list, remove the nth node from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. ... 阅读全文
posted @ 2015-07-16 15:55
尾巴草
阅读(122)
评论(0)
推荐(0)
摘要:
problem: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 is 1 -> 2... 阅读全文
posted @ 2015-07-16 11:03
尾巴草
阅读(113)
评论(0)
推荐(0)
摘要:
Problem:You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?思路:顺时针方... 阅读全文
posted @ 2015-07-16 10:34
尾巴草
阅读(115)
评论(0)
推荐(0)

浙公网安备 33010602011771号