× Didn't find what you were looking for? Ask a question
Top Posters
Since Sunday
w
3
w
3
e
3
3
r
3
g
2
2
b
2
M
2
V
2
f
2
c
2
New Topic  
Stromile Stromile
wrote...
Posts: 299
Rep: 0 0
6 years ago
The following method lacks a base case.
public int noBaseCase(int x)
{
   if (x > 0)
      return noBaseCase(x - 1) + 1;
   else return noBaseCase(x - 2) + 2;
}
Read 46 times
1 Reply
Replies
Answer verified by a subject expert
se7ense7en
wrote...
Posts: 327
Rep: 0 0
6 years ago
Sign in or Sign up in seconds to unlock everything for free
1

Related Topics

Stromile Author
wrote...

6 years ago
this is exactly what I needed
wrote...

Yesterday
This helped my grade so much Perfect
wrote...

2 hours ago
Thanks
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1334 People Browsing
Related Images
  
 243
  
 9053
  
 1607
Your Opinion
Which is the best fuel for late night cramming?
Votes: 234