Find Time Complexity of Following Questions Also Write Pseudo Code of Your Solution For Explanation of Your Answers

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Find time complexity of following questions also write pseudo

code of your solution for explanation of your answers


1 you have given a number you have to find given no is odd or even
2 Given an array of n numbers find every number is even or not
3 you have to find out that given number is prime or not
4 given an array of n numbers find every no(m) is prime or not
5 you have to find factorial of a given number
6 an array of n numbers is given. Find factorial of each number
7 fibonacci series of n numbers
8 insertion at beginning in the link list when only head pointer is
given
9 insertion at end in the link list when only head pointer is given
10 insertion at given position in the link list when only head pointer is
given
11 insertion at end in the link list when head pointer and tail pointer is
given
12 insertion at given position in the link list when only head pointer
and a pointer to that position is given
13 deletion at beginning in the link list when only head pointer is
given
14 deletion at end in the link list when only head pointer is given
15 deletion at given position in the link list when only head pointer is
given
16 deletion at end in the link list when head pointer and tail pointer is
given
17 deletion at given position in the link list when only head pointer
and a pointer to that position is given
18 searching an element in a link list
19 insertion of an element in an array
20 deletion of an element in an array
21 searching an element in an array
22 insertion of an element in a stack
23 insertion of n elements in a stack till stack become full.
24 deletion of an element in a stack
25 deletion of n elements in a stack till stack become empty
26 insertion of an element in a queue
27 insertion of n elements in a queue till queue becomes full
28 deletion of an element in a queue
29 deletion of n element in a queue till queue become empty

You might also like