Homework, Data Structure & Algorithms

Write a recursive function the computes the number of digits in a positive integer n.
For example if n = 6598, the function should return 4.
Find a variant expression and a threshold to show that the function has no infinite
recursion.
Posted Date: 11/19/2012 10:46:11 AM | Location : United States







Related Discussions:- Homework, Assignment Help, Ask Question on Homework, Get Answer, Expert's Help, Homework Discussions

Write discussion on Homework
Your posts are moderated
Related Questions
write an algorithm to search a particular node in linked list which returns " FOUND" or "NOT FOUND" as outcome.

what is hashing? what are diffrent method of hashing?

explain working of siso-register to store 1011 and show timing diagram &table

Circular Queues:- A more efficient queue representation is get by regarding the array Q(1:n) as circular. It becomes more convenient to declare the array as Q(O: n-1), when  re

Q. Devise a representation for a given list where insertions and deletions can be made at both the ends. Such a structure is called Deque (which means Double ended queue). Write fu

Q. Write a procedure to the insert a node into the linked list at a particular position and draw the same by taking an example?

Write a recursive function the computes the number of digits in a positive integer n. For example if n = 6598, the function should return 4. Find a variant expression and a thresho

The time required to delete a node x from a doubly linked list having n nodes is O (1)

Preorder traversal of a binary tree struct NODE { struct NODE *left; int value;     /* can take any data type */ struct NODE *right; };   preorder(struct N

How sparse matrix stored in the memory of a computer?