GeeksforGeeks

A computer science portal for geeks

Browsing the tag Recursion

Question 1 Predict the output of the following program. What does the following fun() do in general?

Read More »

Question 1 Consider the following recursive C function. Let len be the length of the string s and num be the number of characters printed on the screen

Read More »

Question 1 Predict the output of following program. What does the following fun() do in general?

Read More »

Recursion: In programming terms a recursive function can be defined as a routine that calls itself directly or indirectly.

Read More »

Question 1 Predict the output of following program.

Read More »

Explain the functionality of below recursive functions.

Read More »

Explain the functionality of following functions.

Read More »

Explain the functionality of following functions.

Read More »

You are not allowed to use loop constructs like while, for..etc, and you can only use the following ADT functions on Stack S: isEmpty(S) push(S) pop(S)

Read More »

Assume the structure of a Linked List node is as follows.

Read More »