Class Notes (834,979)
Canada (508,839)
CS 138 (14)
Lecture 9

Data Lecture 9.docx

3 Pages
109 Views
Unlock Document

Department
Computer Science
Course
CS 138
Professor
Michael Godfrey
Semester
Winter

Description
Data Lecture 9 February 5, 2013 Recursion #include (...) ... int fact (int n) { if (n<=1) return 1; //basis case else return n*fact(n-1); //(n-1) is reduction, n*fact(n-1) is composition } int main (...) { int k; cin>>k; cout<0) { K moves hanoi (N-1, src, temp, dest); 0 0 cout<
More Less

Related notes for CS 138

Log In


OR

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit