摘要: Problem statement Given an unsorted array of integers, find the length of longest increasing subsequence. For example,Given [10, 9, 2, 5, 3, 7, 101, 1 阅读全文
posted @ 2017-05-15 22:42 蓝色地中海 阅读(185) 评论(0) 推荐(0)
摘要: Problem statement: Given two strings, find the longest common subsequence (LCS). Your code should return the length of LCS. Have you met this question 阅读全文
posted @ 2017-05-15 22:23 蓝色地中海 阅读(156) 评论(0) 推荐(0)
摘要: Problem statement: Given an m x n matrix of non-negative integers representing the height of each unit cell in a continent, the "Pacific ocean" touche 阅读全文
posted @ 2017-05-15 11:51 蓝色地中海 阅读(189) 评论(0) 推荐(0)
摘要: Problem statement: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum pro 阅读全文
posted @ 2017-05-15 09:46 蓝色地中海 阅读(160) 评论(0) 推荐(0)
摘要: Problem statement: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum pro 阅读全文
posted @ 2017-05-15 09:45 蓝色地中海 阅读(169) 评论(0) 推荐(0)
摘要: Problem statement: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum pro 阅读全文
posted @ 2017-05-15 09:44 蓝色地中海 阅读(124) 评论(0) 推荐(0)
摘要: Problem statement: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum pro 阅读全文
posted @ 2017-05-15 09:42 蓝色地中海 阅读(118) 评论(0) 推荐(0)
摘要: Problem statement: Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at m 阅读全文
posted @ 2017-05-15 09:10 蓝色地中海 阅读(161) 评论(0) 推荐(0)
摘要: Problem statement: Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 阅读全文
posted @ 2017-05-15 07:00 蓝色地中海 阅读(302) 评论(0) 推荐(0)
摘要: Problem statement: Given two words word1 and word2, find the minimum number of steps required to make word1 and word2 the same, where in each step you 阅读全文
posted @ 2017-05-15 06:11 蓝色地中海 阅读(709) 评论(0) 推荐(0)
摘要: Problem statement: Given n processes, each process has a unique PID (process id) and its PPID (parent process id). Each process only has one parent pr 阅读全文
posted @ 2017-05-15 05:52 蓝色地中海 阅读(335) 评论(0) 推荐(0)
摘要: Problem statement: Given an integer array, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the w 阅读全文
posted @ 2017-05-15 05:39 蓝色地中海 阅读(782) 评论(0) 推荐(0)