08 2015 档案

摘要:Question : Write an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integers in each row are s... 阅读全文
posted @ 2015-08-30 10:48 jeremyatchina 阅读(245) 评论(0) 推荐(0)
摘要:Question :Search a 2D Matrix IIWrite an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integer... 阅读全文
posted @ 2015-08-19 13:09 jeremyatchina 阅读(346) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2015-08-18 11:36 jeremyatchina 阅读(254) 评论(0) 推荐(0)
摘要:Question :Bubble sort using singly-linked list群暉面試題Idea :在linked list 交換node與node時, 我們會想用換*next的方式。但是這裡是singly-linked list.還會需要previouslynode。其實這裡單純直接... 阅读全文
posted @ 2015-08-17 15:10 jeremyatchina 阅读(348) 评论(0) 推荐(0)
摘要:Question :Given a binary tree, return thepreordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[... 阅读全文
posted @ 2015-08-16 14:51 jeremyatchina 阅读(275) 评论(0) 推荐(0)