EdocGram
Home
(current)
Topics
EdocAI
Code Editor
HTML
Javascript
PHP
Python
Python AI Code Editor
More
Contact
About
Privacy Policy
Terms and Conditions
Log In
Topic
View
More
Topic
Hashing
Linked List
Queue
Stack
Backtracking
Dynamic Programming
Graph Theory
Bit Manipulation
Mathematics
Sliding Window Technique
Divide And Conquer
Matrix Manipulation
Two Pointers
Tree
Topic: matrix-manipulation-problem / Level: beginner
1. Write a program to find the transpose of a matrix.
2. Write a program to add two matrices of the same size.
3. Write a program to subtract two matrices of the same size.
4. Write a program to multiply a matrix by a scalar.
5. Write a program to multiply two matrices.
6. Write a program to find the sum of all elements in a matrix.
7. Write a program to find the largest element in a matrix.
8. Write a program to count the number of zeros in a matrix.
9. Write a program to check if a matrix is square.
10. Write a program to check if two matrices are equal.
11. Write a program to print the diagonal elements of a square matrix.
12. Write a program to calculate the trace of a square matrix.
13. Write a program to swap two rows in a matrix.
14. Write a program to swap two columns in a matrix.
15. Write a program to reverse the rows of a matrix.
16. Write a program to reverse the columns of a matrix.
17. Write a program to check if a matrix is symmetric.
18. Write a program to find the row-wise sum of a matrix.
19. Write a program to find the column-wise sum of a matrix.
20. Write a program to find the determinant of a 2x2 matrix.
21. Write a program to calculate the product of the diagonal elements of a square matrix.
22. Write a program to check if a matrix is an identity matrix.
23. Write a program to find the lower triangular matrix of a given square matrix.
24. Write a program to find the upper triangular matrix of a given square matrix.
25. Write a program to find the sum of the elements in the main diagonal of a matrix.
26. Write a program to find the sum of the elements in the anti-diagonal of a matrix.
27. Write a program to check if two matrices are orthogonal.
28. Write a program to flip a matrix horizontally.
29. Write a program to flip a matrix vertically.
30. Write a program to rotate a matrix by 45 degrees.
31. Write a program to compute the sum of each row in a matrix.
32. Write a program to compute the sum of each column in a matrix.
33. Write a program to find the smallest element in a matrix.
34. Write a program to find the sum of all the border elements of a matrix.
35. Write a program to replace all the elements in the main diagonal with 0.
36. Write a program to replace all the elements in the anti-diagonal with 0.
37. Write a program to swap the main diagonal and anti-diagonal elements of a square matrix.
38. Write a program to calculate the mean of all elements in a matrix.
39. Write a program to check if a matrix contains duplicate elements.
40. Write a program to count the number of non-zero elements in a matrix.
41. Write a program to create an identity matrix of a given size.
42. Write a program to add two diagonal matrices.
43. Write a program to subtract two diagonal matrices.
44. Write a program to multiply two diagonal matrices.
45. Write a program to check if a matrix is upper triangular.
46. Write a program to check if a matrix is lower triangular.
47. Write a program to print a matrix in a spiral order.
48. Write a program to print a matrix in a zigzag pattern.
49. Write a program to convert a matrix into a column-major form.
50. Write a program to convert a matrix into a row-major form.
Previous
1
2
...
20
Next
More Levels
Intermediate
Advanced
Aniket The Programmer
This website is managed by aniket the programmer :)
Website
Instagram