Set 10 - Binary Trees

Use Practice Loop if you need a reset.

Problems

Deliverables

  • Write a 1-line invariant for each problem.
  • Note 1 edge case or pitfall per problem.
  • Record time-to-first-correct solution.

Notes

  • LC 235: BST property; move left/right by value.
  • LC 236: DFS; return node when both sides hit.
  • LC 297: BFS/DFS with null markers; reversible parse.
  • LC 124: DFS max gain; global max; drop negatives.

Review

  • Time spent + where you got stuck?
  • Biggest mistake or missed edge case?
  • One concrete improvement for next time.

Comments

Share your approach or ask questions

0 comments
?
|
Markdown supported
Sign in to post

Loading comments...