摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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.) 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文