Rotate The Image By 90 Degrees Clockwise ( LeetCode #48 ) | FREE DSA Course in JAVA | Lecture 89

  Рет қаралды 4,701

TAP ACADEMY

TAP ACADEMY

Күн бұрын

Пікірлер: 3
@harissaeed5811
@harissaeed5811 11 ай бұрын
my code is not accepting by leet code class solution { static void rotate(int[][] arr) { for (int i = 0; i < arr.length-1; i++) { for (int j = i; j < arr.length; j++) { int temp = arr[i][j]; arr[i][j] = arr[j][i]; arr[j][i]=temp; } } for (int i = 0; i < arr.length; i++) { int left = 0; int right = arr[0].length - 1; while (left < right) { int temp = arr[i][left]; arr[i][left] = arr[i][right]; arr[i][right] = temp; left++; right--; } } } } Line 7: error: cannot find symbol [in __Driver__.java] new Solution().rotate(param_1); ^ symbol: class Solution location: class __DriverSolution__
@prathameshborse
@prathameshborse 11 ай бұрын
Class Name is wrong I think.!
@SwapnilKumarSingh-xl3ge
@SwapnilKumarSingh-xl3ge 6 ай бұрын
i am getting runtime error when i am executing this code. Somebody plz look into it import java.util.*; public class Solution { public static void rotateMatrix(int [][]mat){ // Write your code here. int n=mat.length; //transpose of the matrix for(int i=0;i
哈莉奎因怎么变骷髅了#小丑 #shorts
00:19
好人小丑
Рет қаралды 56 МЛН
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 50 МЛН
Spongebob ate Michael Jackson 😱 #meme #spongebob #gmod
00:14
Mr. LoLo
Рет қаралды 10 МЛН
BREZİLYA’DA NASIL DOLANDIRILDIK!!
21:01
Özgür yolda
Рет қаралды 280
36. Valid Sudoku | Leetcode | Medium | Java | Amazon
17:34
AlgorithmHQ
Рет қаралды 2,9 М.
哈莉奎因怎么变骷髅了#小丑 #shorts
00:19
好人小丑
Рет қаралды 56 МЛН