上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 26 下一页
摘要: Question You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins tha 阅读全文
posted @ 2017-09-30 15:41 清水汪汪 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Question Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of 阅读全文
posted @ 2017-09-29 10:09 清水汪汪 阅读(148) 评论(0) 推荐(0) 编辑
摘要: Question Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.) 阅读全文
posted @ 2017-09-28 17:19 清水汪汪 阅读(125) 评论(0) 推荐(0) 编辑
摘要: Question Given n non negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in 阅读全文
posted @ 2017-09-27 14:17 清水汪汪 阅读(121) 评论(0) 推荐(0) 编辑
摘要: Question Given an encoded string, return it's decoded string. The encoding rule is: k[encoded_string], where the encoded_string inside the square brac 阅读全文
posted @ 2017-09-24 22:32 清水汪汪 阅读(217) 评论(0) 推荐(0) 编辑
摘要: Question Given a binary tree, return all duplicate subtrees. For each kind of duplicate subtrees, you only need to return the root node of any one of 阅读全文
posted @ 2017-09-24 21:24 清水汪汪 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 1. 在Linux下直接用pip install packageName,有些文件会被放到根目录下,如果没有sudo权限的话,是会安装失败的。这个以后我们就需要指定安装的目录了。 2. 一般编译源代码三部曲 ./configure make make install 这种默认安装路径的话,会把可执行 阅读全文
posted @ 2017-09-24 19:26 清水汪汪 阅读(11221) 评论(0) 推荐(0) 编辑
摘要: Question Find the nth digit of the infinite integer sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ... Note: n is positive and will fit within the range 阅读全文
posted @ 2017-09-24 19:17 清水汪汪 阅读(177) 评论(0) 推荐(0) 编辑
摘要: Question 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 阅读全文
posted @ 2017-09-17 11:45 清水汪汪 阅读(238) 评论(0) 推荐(0) 编辑
摘要: Question Given an integer array, find three numbers whose product is maximum and output the maximum product. Example 1: Example 2: Note: The length of 阅读全文
posted @ 2017-09-17 11:16 清水汪汪 阅读(123) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 26 下一页