returning variable values in recursion

后端 未结 0 1641
长情又很酷
长情又很酷 2020-12-28 11:38

I want to return the sum of values of all the left leaves in a tree but it seems that values in my "total" variable are being lost when it returns back to the call

相关标签:
回答
  • 消灭零回复
提交回复
热议问题