上一页 1 2 3 4 5 6 7 8 ··· 12 下一页
摘要: Write a program to find the node at which the intersection of two singly linked lists begins.For example, the following two linked lists:A: a... 阅读全文
posted @ 2015-11-16 10:17 AprilCheny 阅读(227) 评论(0) 推荐(0) 编辑
摘要: Given a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, return1->2.Given1->1->2->3->3, retu... 阅读全文
posted @ 2015-11-16 09:24 AprilCheny 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Given a singly linked list, determine if it is a palindrome.Follow up:Could you do it in O(n) time and O(1) space?Subscribeto see which companies aske... 阅读全文
posted @ 2015-11-15 16:25 AprilCheny 阅读(203) 评论(0) 推荐(0) 编辑
摘要: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.Subscribe... 阅读全文
posted @ 2015-11-15 10:33 AprilCheny 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 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 -> 3 -> ... 阅读全文
posted @ 2015-11-14 19:22 AprilCheny 阅读(171) 评论(0) 推荐(0) 编辑
摘要: Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After re... 阅读全文
posted @ 2015-11-14 18:46 AprilCheny 阅读(156) 评论(0) 推荐(0) 编辑
摘要: Reverse a singly linked list.click to show more hints.Hint:A linked list can be reversed either iteratively or recursively. Could you implement both?S... 阅读全文
posted @ 2015-11-13 19:45 AprilCheny 阅读(3390) 评论(0) 推荐(0) 编辑
摘要: The set[1,2,3,…,n]contains a total ofn! unique permutations.By listing and labeling all of the permutations in order,We get the following sequence (ie... 阅读全文
posted @ 2015-11-13 10:30 AprilCheny 阅读(233) 评论(0) 推荐(0) 编辑
摘要: Implement pow(x,n).Subscribeto see which companies asked this question解法1:最简单的即是n个x直接相乘,毫无疑问会超时Time Limit Exceededclass Solution {public: double my... 阅读全文
posted @ 2015-11-12 18:56 AprilCheny 阅读(350) 评论(0) 推荐(0) 编辑
摘要: Divide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INT.Subscribeto see which companies asked th... 阅读全文
posted @ 2015-11-12 17:47 AprilCheny 阅读(448) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 12 下一页