2016年9月27日

摘要: 整体来说,就像是本科一样,我们都想要学的东西都可以被工作中用到,所以想要学实用的东西. 一个工作三年的人,刷题应该怎么刷?我作为一个cs小白,可能还得继续努力! 阅读全文
posted @ 2016-09-27 09:22 猛犸猴子 阅读(92) 评论(0) 推荐(0)

2016年8月25日

摘要: Implement a stack with min() function, which will return the smallest number in the stack. It should support push, pop and min operation all in O(1) c 阅读全文
posted @ 2016-08-25 22:16 猛犸猴子 阅读(142) 评论(0) 推荐(0)

2016年8月20日

摘要: For this problem we need to learn a new trick that if your start sum up all elements in an array. When you start from a to b to sum up all elements, i 阅读全文
posted @ 2016-08-20 00:42 猛犸猴子 阅读(153) 评论(0) 推荐(0)

2016年8月19日

摘要: For this problem we need to sort the array into three parts namely with three numbers standing for three different colors. Currently, the method in mi 阅读全文
posted @ 2016-08-19 11:07 猛犸猴子 阅读(144) 评论(0) 推荐(0)

2016年8月16日

摘要: Given three strings: s1, s2, s3, determine whether s3 is formed by the interleaving of s1 and s2. Example For s1 = "aabcc", s2 = "dbbca" When s3 = "aa 阅读全文
posted @ 2016-08-16 02:18 猛犸猴子 阅读(185) 评论(0) 推荐(0)

2016年8月15日

摘要: Given a string s, cut s into some substrings such that every substring is a palindrome. Return the minimum cuts needed for a palindrome partitioning o 阅读全文
posted @ 2016-08-15 10:39 猛犸猴子 阅读(130) 评论(0) 推荐(0)
摘要: LintCode Edit Distance Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counte 阅读全文
posted @ 2016-08-15 10:31 猛犸猴子 阅读(110) 评论(0) 推荐(0)

2016年8月13日

摘要: Given a sequence of integers, find the longest increasing subsequence (LIS). You code should return the length of the LIS. Clarification What's the de 阅读全文
posted @ 2016-08-13 03:32 猛犸猴子 阅读(152) 评论(0) 推荐(0)

2016年8月11日

摘要: You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you cl 阅读全文
posted @ 2016-08-11 12:20 猛犸猴子 阅读(161) 评论(0) 推荐(0)
摘要: Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. 阅读全文
posted @ 2016-08-11 12:00 猛犸猴子 阅读(107) 评论(0) 推荐(0)

导航