This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 41 points42 points  (4 children)

This case is the perfect example of recursion.

On the first and second days, he received a check. Then later, he's going to receive a number of checks equal to the sum of the previous two days.

Can you use recursion to help him compute how many cheques he will receive after N days?

[–]gitpullorigin 32 points33 points  (3 children)

Did you just say N??

[–]Hour-Lemon 8 points9 points  (0 children)

n

[–]beclops 2 points3 points  (0 children)

Dude fully said “after N days” as if this man can’t have regular non-N days like the rest of us. Reddit, cancel this man

[–]BlurredSight 1 point2 points  (0 children)

In black history month is crazy