数据结构
滑头鬼之亨
Frankiller
展开
-
uva 673 - Parentheses Balance
Parentheses Balance You are given a string consisting of parentheses () and []. A string of this type is said to becorrect: (a) if it is the empty string (b) if A and B are correct, AB原创 2012-07-07 22:34:51 · 1929 阅读 · 1 评论 -
uva 112 - Tree Summing
Tree Summing BackgroundLISP was one of the earliest high-level programming languages and, with FORTRAN, is one of the oldest languages currently being used. Lists, which are the fundam原创 2012-07-20 16:19:33 · 1210 阅读 · 0 评论 -
uva 297 - Quadtrees
Quadtrees A quadtree is a representation format used to encode images. The fundamental idea behind the quadtree is that any image can be split into four quadrants. Each quadrant may again原创 2012-07-19 11:53:06 · 1768 阅读 · 0 评论 -
uva 11234 - Expressions
2007/2008 ACM International Collegiate Programming Contest University of Ulm Local ContestProblem E: ExpressionsArithmetic expressions are usually written with the operators in between the t原创 2012-07-17 20:19:48 · 1154 阅读 · 0 评论 -
uva 548 - Tree
Tree You are to determine the value of the leaf node in a given binary tree that is the terminal node of a path of least value from the root of the binary tree to any leaf. The value of a原创 2012-07-18 16:50:04 · 3672 阅读 · 0 评论 -
uva 540 - Team Queue
Team Queue Queues and Priority Queues are data structures which are known to most computer scientists. TheTeam Queue, however, is not so well known, though it occurs often in everyday li原创 2012-07-16 15:46:32 · 820 阅读 · 0 评论 -
uva 11111 - Generalized Matrioshkas
Problem B - Generalized Matrioshkas Vladimir worked for years making matrioshkas, those nesting dolls that certainly represent truly Russian craft. A matrioshka is a doll that may be opened in two h原创 2012-07-16 20:32:31 · 1377 阅读 · 0 评论 -
uva 10050 - Hartals
Problem D: Hartals A social research organization has determined a simple set of parameters to simulate the behavior of the political parties of our country. One of the parameters is a positiv原创 2012-07-14 16:24:28 · 1241 阅读 · 0 评论 -
uva 10152 - ShellSort
Problem D: ShellSort He made each turtle stand on another one's backAnd he piled them all up in a nine-turtle stack.And then Yertle climbed up. He sat down on the pile.What a wonderful view! H原创 2012-07-14 12:58:07 · 955 阅读 · 0 评论 -
uva 442 - Matrix Chain Multiplication
Matrix Chain Multiplication Suppose you have to evaluate an expression like A*B*C*D*E where A,B,C,D and E are matrices. Since matrix multiplication is associative, the order in which multiplications原创 2012-07-12 19:22:32 · 1187 阅读 · 0 评论 -
uva 133 - The Dole Queue
The Dole Queue In a serious attempt to downsize (reduce) the dole queue, The New National Green Labour Rhinoceros Party has decided on the following strategy. Every day all dole applicants原创 2012-07-10 10:48:08 · 1153 阅读 · 0 评论 -
uva 10562 - Undraw the Trees
Problem DUndraw the TreesInput: Standard InputOutput:Standard Output Time Limit:2 Seconds Professor Homer has been reported missing. We suspect that his recent research works might h原创 2012-07-21 10:54:21 · 1638 阅读 · 0 评论