Search found 2 matches

by doddi
Sun Mar 06, 2005 7:41 pm
Forum: Volume 1 (100-199)
Topic: 112 - Tree Summing
Replies: 137
Views: 32307

Thanks teni_teni.

I thought that () should be considered as nodes. :oops:
It works now and I put up some random strings to test it on.
If anybody is interested in them they can get them here and the answers here .

It doesn't have many traps, such as trees covering multiple lines or spaces but I ...
by doddi
Sun Mar 06, 2005 12:22 pm
Forum: Volume 1 (100-199)
Topic: 112 - Tree Summing
Replies: 137
Views: 32307

Isn't xbeanx wrong here?
If I am correct

Code: Select all

77 (77(1()())())
and the last 9 strings should give "yes".

Code: Select all

77
(
	77
	(
		1
		()
		()
	)
	()
)
112 has been driving me crazy for the last couple of days, am I just misunderstanding something?

Go to advanced search