Keeping count inside a recursion?

前端 未结 0 1216
有刺的猬
有刺的猬 2020-12-14 01:04

I need to write a recursive function that prints out an English ruler\'s ticks.

Problem is I need to pass only one parameter, but I need the ruler to be (2^k)-1 ticks

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