Boostable

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2014年2月24日

摘要: 1020. Tree Traversals (25)Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to output the level order traversal sequence of the corresponding binary tree. Input Specification: Each input file contains one 阅读全文
posted @ 2014-02-24 21:45 Boostable 阅读(270) 评论(0) 推荐(0) 编辑

摘要: 1019. General Palindromic Number (20)A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number. All single digit numbers are palindromic numbers.Although palindromic numbers are most often considered in the 阅读全文
posted @ 2014-02-24 20:21 Boostable 阅读(215) 评论(0) 推荐(0) 编辑

摘要: 1018. Public Bike Management (30)There is a public bike service in Hangzhou City which provides great convenience to the tourists from all over the world. One may rent a bike at any station and return it to any other stations in the city.The Public Bike Management Center (PBMC) keeps monitoring the 阅读全文
posted @ 2014-02-24 19:54 Boostable 阅读(481) 评论(0) 推荐(0) 编辑