Write a recursive algorithm
Not what you're looking for?
Write a recursive algorithm to multiply two numbers.
Mult(a,b) = a
Mult(a,(b-1))+a
if b = 1
if b > 1
Purchase this Solution
Solution Summary
This job helps to write a recursive algorithm.
Solution Preview
if (b==1)
<br> mult(a,b)=a;
<br>if (b>1)
<br> mult(a,b)=a + mult(a,(b-1))
<br> =a + (a + ...
Purchase this Solution
Free BrainMass Quizzes
Inserting and deleting in a linked list
This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.
C# variables and classes
This quiz contains questions about C# classes and variables.
Basic UNIX commands
Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.
Javscript Basics
Quiz on basics of javascript programming language.
Basic Networking Questions
This quiz consists of some basic networking questions.