-almost well balanced: abs(mindepth(root)-maxdepth(root)) <= 1
-one tree per line
-remeber to output -del in case of delete! (that's what got me AC)
note to judge, I have received rank 1 on this problem.. even though other's have solved it in 0.000 before me... is this do to memory usage that I am ...
Search found 44 matches
- Mon Oct 08, 2007 7:19 pm
- Forum: Volume 8 (800-899)
- Topic: 829 - Almost Balanced Trees
- Replies: 16
- Views: 10466
- Sat Jul 14, 2007 11:56 pm
- Forum: Volume 9 (900-999)
- Topic: 902 - Password Search
- Replies: 68
- Views: 39764
- Sun Jul 01, 2007 3:10 pm
- Forum: Volume 7 (700-799)
- Topic: 723 - Comment Removal
- Replies: 16
- Views: 13483
- Thu Jun 28, 2007 4:28 am
- Forum: C
- Topic: Illegal Instruction (SIGILL)
- Replies: 3
- Views: 6242
- Sun Jun 17, 2007 1:45 am
- Forum: Volume 3 (300-399)
- Topic: 303 - Pipe
- Replies: 5
- Views: 2316
- Sun Jun 17, 2007 1:34 am
- Forum: Volume 3 (300-399)
- Topic: 303 - Pipe
- Replies: 5
- Views: 2316
- Thu Jun 07, 2007 1:57 am
- Forum: Volume 112 (11200-11299)
- Topic: 11214 - Guarding the Chessboard
- Replies: 13
- Views: 6242
- Thu Jun 07, 2007 1:22 am
- Forum: Volume 112 (11200-11299)
- Topic: 11214 - Guarding the Chessboard
- Replies: 13
- Views: 6242
- Thu Jun 07, 2007 1:14 am
- Forum: Volume 112 (11200-11299)
- Topic: 11214 - Guarding the Chessboard
- Replies: 13
- Views: 6242
- Thu Jun 07, 2007 12:58 am
- Forum: Volume 112 (11200-11299)
- Topic: 11214 - Guarding the Chessboard
- Replies: 13
- Views: 6242
- Thu Jun 07, 2007 12:09 am
- Forum: Volume 112 (11200-11299)
- Topic: 11214 - Guarding the Chessboard
- Replies: 13
- Views: 6242
- Sat May 26, 2007 11:21 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10715 - Cat
- Replies: 11
- Views: 8366
- Sun May 13, 2007 12:40 am
- Forum: Volume 4 (400-499)
- Topic: 474 - Heads / Tails Probability
- Replies: 50
- Views: 18434
- Wed Apr 25, 2007 1:13 am
- Forum: Volume 100 (10000-10099)
- Topic: 10023 - Square root
- Replies: 121
- Views: 45324
bigInt... Large base = more speed? (10023)
I recently solved 10023 (sqrt) using a method described in the forms, and my bigInt class used base 10 digits, in a time of about 5 seconds -- It's seems pretty obvious too me, that if I had used a higher base (i.e. base 10^9) -- it would have greatly increased the speed of addition and subtraction ...
- Mon Apr 23, 2007 8:57 pm
- Forum: Algorithms
- Topic: Traveling Salesman Problem .. MST or not?
- Replies: 5
- Views: 3505