| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
Move to invertPlease anyone explain me how to resolve this problem: Can yo help with the resolution of the fallowing problem: A triangle made of coins of height h is as follows: It has h coins at the base and h-1 coins one level above base and so on.(Coins are placed as shown in the figure below) And at the top most level there will be only one coin Now given h the task is to invert this triangle by moving minimum number of coins. For example when h=4 triangle is For h=4 atleast 3 coins must be moved to invert it. Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator