摘要: When register on a social network, you are always asked to specify your hobbies in order to find some potential friends with the same hobbies. A "soci 阅读全文
posted @ 2016-02-26 16:05 小爷 阅读(286) 评论(0) 推荐(0)
摘要: A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer 阅读全文
posted @ 2016-02-26 16:03 小爷 阅读(278) 评论(0) 推荐(0)
摘要: This time your job is to fill a sequence of N positive integers into a spiral matrix in non-increasing order. A spiral matrix is filled in from the fi 阅读全文
posted @ 2016-02-26 16:02 小爷 阅读(393) 评论(0) 推荐(0)
摘要: The K-P factorization of a positive integer N is to write N as the sum of the P-th power of K positive integers. You are supposed to write a program t 阅读全文
posted @ 2016-02-26 00:45 小爷 阅读(676) 评论(1) 推荐(0)
摘要: The following is from Max Howell @twitter: Google: 90% of our engineers use the software you wrote (Homebrew), but you can't invert a binary tree on a 阅读全文
posted @ 2016-02-26 00:44 小爷 阅读(499) 评论(0) 推荐(0)
摘要: There is a classical process named partition in the famous quick sort algorithm. In this process we typically choose one element as the pivot. Then th 阅读全文
posted @ 2016-02-26 00:43 小爷 阅读(161) 评论(0) 推荐(0)
摘要: People on Mars count their numbers with base 13: Zero on Earth is called "tret" on Mars. The numbers 1 to 12 on Earch is called "jan, feb, mar, apr, m 阅读全文
posted @ 2016-02-26 00:41 小爷 阅读(287) 评论(0) 推荐(0)