上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 50 下一页
摘要: Given an unsorted array of integers, find the length of longest continuous increasing subsequence (subarray). Example 1: Example 2: Note: Length of th 阅读全文
posted @ 2018-09-29 07:15 轻风舞动 阅读(379) 评论(0) 推荐(0) 编辑
摘要: Given an unsorted array of integers, find the number of longest increasing subsequence. Example 1: Example 2: Note: Length of the given array will be 阅读全文
posted @ 2018-09-29 06:05 轻风舞动 阅读(457) 评论(0) 推荐(0) 编辑
摘要: In a N x N grid representing a field of cherries, each cell is one of three possible integers. 0 means the cell is empty, so you can pass through; 1 m 阅读全文
posted @ 2018-09-29 03:31 轻风舞动 阅读(793) 评论(0) 推荐(0) 编辑
摘要: Given a bench with n seats and few people sitting, tell the seat number each time when a new person goes to sit on the bench such that his distance fr 阅读全文
posted @ 2018-09-27 09:10 轻风舞动 阅读(286) 评论(0) 推荐(0) 编辑
摘要: You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. Grid cells are connected horizontally/ve 阅读全文
posted @ 2018-09-27 06:23 轻风舞动 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 这篇文章翻译自http://www.thegeekstuff.com/2010/11/50-linux-commands/这些都是一些很常用的命令,这篇文章中每个命令都有一些简单的示例说明它的用法,对于想学习Unix/Linux的人,这些命令基本上都是需要掌握的: 1. tar 创建一个新的tar文 阅读全文
posted @ 2018-09-26 08:28 轻风舞动 阅读(255) 评论(0) 推荐(0) 编辑
摘要: HashMap和Hashtable的比较是Java面试中的常见问题,用来考验程序员是否能够正确使用集合类以及是否可以随机应变使用多种思路解决问题。HashMap的工作原理、ArrayList与Vector的比较以及这个问题是有关Java 集合框架的最经典的问题。Hashtable是个过时的集合类,存 阅读全文
posted @ 2018-09-26 08:24 轻风舞动 阅读(194) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, flatten it to a linked list in-place. For example, given the following tree: The flattened tree should look like: 给一个二叉树,把它展平为链表  阅读全文
posted @ 2018-09-25 13:40 轻风舞动 阅读(493) 评论(0) 推荐(0) 编辑
摘要: Given m arrays, and each array is sorted in ascending order. Now you can pick up two integers from two different arrays (each array picks one) and cal 阅读全文
posted @ 2018-09-25 13:26 轻风舞动 阅读(772) 评论(0) 推荐(0) 编辑
摘要: In social network like Facebook or Twitter, people send friend requests and accept others' requests as well. Table request_accepted holds the data of 阅读全文
posted @ 2018-09-25 13:03 轻风舞动 阅读(1326) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 50 下一页