摘要: 题目: Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sort 阅读全文
posted @ 2015-11-29 23:31 YRB 阅读(1039) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an array nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k 阅读全文
posted @ 2015-11-29 12:31 YRB 阅读(854) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements of nums exc 阅读全文
posted @ 2015-11-29 08:42 YRB 阅读(409) 评论(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 is 1 -> 2 -> 阅读全文
posted @ 2015-11-29 00:01 YRB 阅读(275) 评论(0) 推荐(0) 编辑