上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页
摘要: The problem:Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree could be any binary tree? Would your previous s... 阅读全文
posted @ 2015-01-29 11:46 airforce 阅读(164) 评论(0) 推荐(0) 编辑
摘要: The problem:Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.My analysis:The is problem could be elegan... 阅读全文
posted @ 2015-01-29 05:58 airforce 阅读(145) 评论(0) 推荐(0) 编辑
摘要: The problem:Given a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, return1->2.Given1->1->2... 阅读全文
posted @ 2015-01-28 11:10 airforce 阅读(169) 评论(0) 推荐(0) 编辑
摘要: The problem:Sort a linked list using insertion sort.My analysis:The idea behind this solution is easy, but the mainipulation over linkedlist is hard a... 阅读全文
posted @ 2015-01-28 01:52 airforce 阅读(252) 评论(0) 推荐(0) 编辑
摘要: The problem:Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents... 阅读全文
posted @ 2015-01-25 00:02 airforce 阅读(140) 评论(0) 推荐(0) 编辑
摘要: The problem:Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a... 阅读全文
posted @ 2015-01-21 04:30 airforce 阅读(140) 评论(0) 推荐(0) 编辑
摘要: The problem:Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; }Populate each... 阅读全文
posted @ 2015-01-20 13:14 airforce 阅读(131) 评论(0) 推荐(0) 编辑
摘要: The problem:There areNgas stations along a circular route, where the amount of gas at stationiisgas[i].You have a car with an unlimited gas tank and i... 阅读全文
posted @ 2015-01-20 11:18 airforce 阅读(181) 评论(0) 推荐(0) 编辑
摘要: The question:Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using ex... 阅读全文
posted @ 2015-01-20 02:25 airforce 阅读(160) 评论(0) 推荐(0) 编辑
摘要: The problem:Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were in... 阅读全文
posted @ 2015-01-18 04:59 airforce 阅读(163) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页