ple.. briefly describe the purpose of having a base case and
a recursive case in a recursive algorithm

Answer Posted / baskar

In recursive algorithm.
1. Base case gives the condition for recursive algorithm
when the recursive call is stop.
2.recursive case vice versa.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you swap the Kth node from beginning with Kth node from end in a Linked List.

558


Differentiate between compilers and interpreters.

518


You want to insert a new item in a binary search tree. How would you do it?

529


How many types of linked list are there?

475


What is the difference between one and two dimensional?

504






How can we remove loops in a linked list? What are the functions of fast and slow pointers?

672


Can you please explain the difference between array_name and &array_name?

550


Is binary tree a bst?

509


Define primary clustering?

535


Can arraylist be resized?

554


Can a hashset contain duplicates?

480


Is it legal to initialize list like this?

547


State the difference between persistent and ephemeral data structure?

1029


What does stack top do?

481


Complete structure of hashmap, very detail description, along with the basic coding of the hashmap internal implementation.

630