摘要: 1090. Highest Price in Supply Chain (25)A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in mo... 阅读全文
posted @ 2015-08-17 20:53 JackWang822 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 1088. Rational Arithmetic (20)For two rational numbers, your task is to implement the basic arithmetics, that is, to calculate their sum, difference, ... 阅读全文
posted @ 2015-08-17 20:22 JackWang822 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 1086. Tree Traversals Again (25)An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that whe... 阅读全文
posted @ 2015-08-17 19:09 JackWang822 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 1085. Perfect Sequence (25)Given a sequence of positive integers and another positive integer p. The sequence is said to be a "perfect sequence" if M ... 阅读全文
posted @ 2015-08-17 16:50 JackWang822 阅读(160) 评论(0) 推荐(0) 编辑