C-language-question

Level: Intermediate

1. Write a program to find the second largest element in an array.
2. Write a program to find the second smallest element in an array.
3. Write a program to find the frequency of elements in an array.
4. Write a program to remove duplicates from an array.
5. Write a program to merge two arrays.
6. Write a program to sort an array in ascending order.
7. Write a program to sort an array in descending order.
8. Write a program to search an element in an array using linear search.
9. Write a program to search an element in an array using binary search.
10. Write a program to find the transpose of a matrix.
11. Write a program to find the sum of two matrices.
12. Write a program to find the difference of two matrices.
13. Write a program to find the product of two matrices.
14. Write a program to find the trace of a matrix.
15. Write a program to find the determinant of a matrix.
16. Write a program to check if a matrix is symmetric.
17. Write a program to check if a matrix is skew-symmetric.
18. Write a program to check if a matrix is an identity matrix.
19. Write a program to check if a matrix is a diagonal matrix.
20. Write a program to check if a matrix is an upper triangular matrix.
21. Write a program to check if a matrix is a lower triangular matrix.
22. Write a program to find the sum of the main diagonal elements of a matrix.
23. Write a program to find the sum of the secondary diagonal elements of a matrix.
24. Write a program to print the boundary elements of a matrix.
25. Write a program to print the spiral order of a matrix.
26. Write a program to find the length of a linked list.
27. Write a program to reverse a linked list.
28. Write a program to find the middle element of a linked list.
29. Write a program to find the nth node from the end of a linked list.
30. Write a program to check if a linked list is a palindrome.
31. Write a program to remove duplicates from a linked list.
32. Write a program to merge two sorted linked lists.
33. Write a program to find the intersection point of two linked lists.
34. Write a program to detect a cycle in a linked list.
35. Write a program to remove a cycle from a linked list.
36. Write a program to implement a stack using an array.
37. Write a program to implement a stack using a linked list.
38. Write a program to implement a queue using an array.
39. Write a program to implement a queue using a linked list.
40. Write a program to implement a circular queue.
41. Write a program to implement a priority queue.
42. Write a program to find the infix to postfix conversion.
43. Write a program to evaluate a postfix expression.
44. Write a program to find the infix to prefix conversion.
45. Write a program to evaluate a prefix expression.
46. Write a program to implement a binary search tree.
47. Write a program to find the height of a binary search tree.
48. Write a program to find the minimum and maximum element in a binary search tree.
49. Write a program to find the inorder, preorder, and postorder traversal of a binary search tree.
50. Write a program to find the level order traversal of a binary search tree.

Beginner Level: View

Advanced Level: View