摘要: Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum pro 阅读全文
posted @ 2016-08-01 23:23 北叶青藤 阅读(182) 评论(0) 推荐(0) 编辑
摘要: You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Each time 阅读全文
posted @ 2016-08-01 12:21 北叶青藤 阅读(274) 评论(0) 推荐(0) 编辑
摘要: Find the total area covered by two rectilinear rectangles in a 2D plane. Each rectangle is defined by its bottom left corner and top right corner as s 阅读全文
posted @ 2016-08-01 04:41 北叶青藤 阅读(232) 评论(0) 推荐(0) 编辑
摘要: Excel Sheet Column Title Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: Given a column titl 阅读全文
posted @ 2016-08-01 03:34 北叶青藤 阅读(304) 评论(0) 推荐(0) 编辑
摘要: Nested List Weight Sum I Given a nested list of integers, return the sum of all integers in the list weighted by their depth. Each element is either a 阅读全文
posted @ 2016-08-01 02:55 北叶青藤 阅读(320) 评论(0) 推荐(0) 编辑
摘要: Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and r 阅读全文
posted @ 2016-08-01 01:10 北叶青藤 阅读(160) 评论(0) 推荐(0) 编辑
摘要: Given a list of unique words. Find all pairs of distinct indices (i, j) in the given list, so that the concatenation of the two words, i.e.words[i] + 阅读全文
posted @ 2016-08-01 00:32 北叶青藤 阅读(342) 评论(0) 推荐(0) 编辑