上一页 1 ··· 7 8 9 10 11 12 下一页
摘要: 题目:Given a linked list, swap every two adjacent nodes and return its head.Given 1->2->3->4, you sh... 阅读全文
posted @ 2015-09-26 20:31 JSRGFJZ6 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. 1 / \ 2 3 Return the sum = 12 + 13 = 25. 思路:递 阅读全文
posted @ 2015-09-26 19:42 JSRGFJZ6 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a n... 阅读全文
posted @ 2015-09-26 19:42 JSRGFJZ6 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an array with n objects colored red, white or blue, sort them so that objects of the same... 阅读全文
posted @ 2015-09-25 07:23 JSRGFJZ6 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a linked list and a value x, partition it such that all nodes less than x come before nod... 阅读全文
posted @ 2015-09-24 15:13 JSRGFJZ6 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a binary tree, return the inorder traversal of its nodes' values.Given binary tree {1,#,2... 阅读全文
posted @ 2015-09-24 01:02 JSRGFJZ6 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a binary tree, return the postorder traversal of its nodes' values.For example:Given bina... 阅读全文
posted @ 2015-09-24 00:48 JSRGFJZ6 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct... 阅读全文
posted @ 2015-09-23 00:21 JSRGFJZ6 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a sorted linked list, delete all duplicates such that each element appear only once.Given... 阅读全文
posted @ 2015-09-23 00:17 JSRGFJZ6 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 题目:Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the ... 阅读全文
posted @ 2015-09-21 11:30 JSRGFJZ6 阅读(124) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 下一页