ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1136. Parliament

BST - Solved
Posted by Luka Bulatovic 20 Aug 2011 21:56
It's a Binary Search Tree solution :) Just fill the tree with the elements from behind(from root), then run the reverse postorder(right side, left side, root).