Skip to content
Zeyuan Hu edited this page May 24, 2018 · 2 revisions

General comments:

  • For recursive calls (tree problems), we can use return value as indicator of some requirement checking status and pass counting variable as a parameter to perform actual counting. Usually, only do what question asks in recursive call (e.g. counting) is not enough [250]
Clone this wiki locally