"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Originally posted by Teri Fisher:
I looked at that earlier but I can't use any local variables.
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
Touche.Originally posted by Garrett Rowe:
Campbell Ritchie: No 1 is absolutely essential to a recursion.
Not necessarily.
Originally posted by Guido Sautter:
Hi Teri,
you might try this one:
Imagination is more important than knowledge "Albert Einstein"
Originally posted by f. nikita thomas:
...is this really the type of help they need? just giving the answer really doesn't help them understand the concept...
We're all here to learn, so when responding to others, please focus on helping them discover their own solutions, instead of simply providing answers.
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Originally posted by Teri Fisher:
...I can't figure out how I'm getting this output...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Originally posted by marc weber:
When n = 1, you want 1/1.
When n = 2, you want 1/1 + 1/2.
When n = 3, you want 1/1 + 1/2 + 1/3.
When n = 4, you want 1/1 + 1/2 + 1/3 + 1/4.
And so on.
Imagination is more important than knowledge "Albert Einstein"
1 / n - 1 doesn't do what you think it does; / has a higher precedence than - so what you meant to write was 1 / (n - 1). But even that isn't as you think recursive, and it isn't giving you the right answer.Originally posted by Teri Fisher:
. . .
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |