Lecture 12 - Rotate Matrix by 90 Degrees in Java | Rotate Matrix in Clockwise | Transpose Matrix

  Рет қаралды 1,654

Prateek Jain Academy

Prateek Jain Academy

Күн бұрын

Rotate Matrix by 90 Degrees in Java | Rotate Matrix in Java Clockwise and Anti-clockwise , Transpose of matrix
Contact at - 9555031137
Website - www.prateekjainacademy.com
In this section, we will create a Java program to rotate a matrix by 90 degrees in a clockwise and anti-clockwise rotation. The clockwise rotation is also known as the right rotation of the matrix and the anti-clockwise rotation of the matrix is also known as the left rotation of the matrix.
Rotate Matrix 90 Degree Clockwise or Right Rotation
The rotation of a matrix involves two steps:
First, find the transpose of the given matrix.
Swap the elements of the first column with the last column (if the matrix is of 3*3). The second column remains the same.
It is an efficient solution.
If the given matrix is 4*4 matrix, swap the first column with the last column and the second column with the third column.

Пікірлер: 9
@vickyjaiswal7845
@vickyjaiswal7845 Жыл бұрын
thank u so.much sir❤
@prakashsingh4787
@prakashsingh4787 Жыл бұрын
Sir please continue this series
@professionalsir8501
@professionalsir8501 Жыл бұрын
Need more videos based on hashmap technique 🙏
@ap1techno109
@ap1techno109 Жыл бұрын
This is an amazing video of Java Rotate Matrix by 90 Degrees thanks you sir❣❣❣❣❣❣❣❣ i have one questions The interval between two elements in arr is defined as the absolute difference between their indices. More formally, the interval between arr[i] and arr[j] is |i - j|. Return an array intervals of length n where intervals[i] is the sum of intervals between arr[i] and each element in arr with the same value as arr[i]. please
@programmerdesire
@programmerdesire Жыл бұрын
But sir , ye to sirf n x n ke liye hi work karega, n x m ke liye nhi karega
@Patra_Kirsani
@Patra_Kirsani Жыл бұрын
Sir aap Impetus Gurukul pe padhana chod diye kya?
@docinspiremotivation4538
@docinspiremotivation4538 Жыл бұрын
This is an amazing session of Java Matrix rotation. Sir computer section kab se start hoga nimcet 2024 impetus gurukul ka
@PrateekJainAcademy
@PrateekJainAcademy Жыл бұрын
Follow this playlist kzbin.info/aero/PLXpS9L5C5-kONWre_aikpieBsosUrZ7tD
@shamshadhussain7221
@shamshadhussain7221 Жыл бұрын
Sir ji jami ke MCA ke liye aap computer ka course lunch kariye plzz sir...🙏🏻🙏🏻🙏🏻
Rotate Matrix/Image by 90 Degrees | Brute - Optimal
17:47
take U forward
Рет қаралды 287 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Rotate matrix by 270 degrees clockwise | Rotate Image
5:10
Rotate Image - Matrix - Leetcode 48
15:46
NeetCode
Рет қаралды 257 М.
Matrix Multiplication in Java Theory
15:56
Telusko
Рет қаралды 141 М.
The 7 Levels of Math Symbols
14:03
The Unqualified Tutor
Рет қаралды 65 М.
one year of studying (it was a mistake)
12:51
Jeffrey Codes
Рет қаралды 339 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН