321-HW6 - ); /*! ensures Max = [the largest integer in t]...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
2. global_function Integer Height ( ); /*! ensures Height = HEIGHT (t) !*/ { object Integer h; if(t.Number_Of_Children() > 0) { object Tree_Of_Item t2; t.Remove(0, t2); t2.Height(); h++; t.Add(0, t2); } return h; } 3. global_function Integer Max (
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ); /*! ensures Max = [the largest integer in t] !*/ { max = t[current]; if(t.Number_Of_Children() > 0) { t.Remove(0, t2); if(t2[current] > max) { max = t2[current]; } t2.Max(); t.Add(0, t2); } return max; }...
View Full Document

Ask a homework question - tutors are online