摘要: Given a root of Binary Search Tree with unique value for each node. Remove the node with given value. If there is no such a node with given value in t... 阅读全文
posted @ 2014-12-30 07:19 LiBlog 阅读(516) 评论(0) 推荐(0) 编辑
摘要: Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space i... 阅读全文
posted @ 2014-12-30 07:18 LiBlog 阅读(221) 评论(0) 推荐(0) 编辑
摘要: Given an array ofnobjects with k different colors (numbered from 1 to k), sort them so that objects of the same color are adjacent, with the colors in... 阅读全文
posted @ 2014-12-30 06:22 LiBlog 阅读(223) 评论(0) 推荐(0) 编辑
摘要: Write an efficient algorithm that searches for a value in an m x n matrix, return the occurrence of it.This matrix has the following properties: * In... 阅读全文
posted @ 2014-12-30 05:44 LiBlog 阅读(267) 评论(0) 推荐(0) 编辑