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
51. Write a program to check if two matrices are inverses of each other.
52. Write a program to find the position of the maximum element in a matrix.
53. Write a program to find the position of the minimum element in a matrix.
54. Write a program to print the elements above the main diagonal of a square matrix.
55. Write a program to print the elements below the main diagonal of a square matrix.
56. Write a program to reverse the order of rows in a matrix.
57. Write a program to reverse the order of columns in a matrix.
58. Write a program to find the average of each row in a matrix.
59. Write a program to find the average of each column in a matrix.
60. Write a program to find the determinant of a 1x1 matrix.
61. Write a program to find the trace of a 3x3 matrix.
62. Write a program to multiply two square matrices of size 2x2.
63. Write a program to multiply two square matrices of size 3x3.
64. Write a program to multiply two rectangular matrices.
65. Write a program to perform scalar addition on a matrix.
66. Write a program to perform scalar subtraction on a matrix.
67. Write a program to count the number of positive elements in a matrix.
68. Write a program to count the number of negative elements in a matrix.
69. Write a program to create a matrix with all elements initialized to 1.
70. Write a program to create a matrix with all elements initialized to 0.
71. Write a program to calculate the sum of diagonal elements of a matrix.
72. Write a program to create a matrix with elements in a checkerboard pattern (alternating 0s and 1s).
73. Write a program to shift all elements of a matrix by one position to the left.
74. Write a program to shift all elements of a matrix by one position to the right.
75. Write a program to shift all elements of a matrix by one position up.
76. Write a program to shift all elements of a matrix by one position down.
77. Write a program to print the elements in the border of a matrix.
78. Write a program to replace all the even numbers in a matrix with 0.
79. Write a program to replace all the odd numbers in a matrix with 1.
80. Write a program to print the matrix in column-major order.
81. Write a program to create a matrix of size m x n filled with random integers.
82. Write a program to sort all elements of a matrix in ascending order.
83. Write a program to sort all elements of a matrix in descending order.
84. Write a program to calculate the product of elements in each row of a matrix.
85. Write a program to calculate the product of elements in each column of a matrix.
86. Write a program to check if all elements of a matrix are positive.
87. Write a program to check if all elements of a matrix are negative.
88. Write a program to replace negative elements in a matrix with their absolute value.
89. Write a program to find the sum of elements in the left half of a square matrix.
90. Write a program to find the sum of elements in the right half of a square matrix.
91. Write a program to check if a matrix is a diagonal matrix.
92. Write a program to check if two matrices are equal without using loops.
93. Write a program to extract the diagonal elements from a matrix and store them in an array.
94. Write a program to convert a matrix into its diagonal form.
95. Write a program to count the number of positive numbers in each row of a matrix.
96. Write a program to count the number of negative numbers in each row of a matrix.
97. Write a program to replace all odd numbers in a matrix with -1.
98. Write a program to rotate a square matrix by 270 degrees.
99. Write a program to check if the sum of the elements in the main diagonal equals the sum of the elements in the anti-diagonal.
100. Write a program to count the number of even elements in each row of a matrix.
Previous
1
2
3
...
20
Next
More Levels
Intermediate
Advanced
Aniket The Programmer
This website is managed by aniket the programmer :)
Website
Instagram