class love { public static void main(String[] args) { int matrix[][]={{1,2,3,4},{5,1,2,3},{9,5,1,2}}; boolean N=true; int r=matrix.length; int c=matrix[0].length; for(int i=0; i
class HelloWorld { public static void main(String[] args) { int arr[ ][ ]={{1,2,3},{4,5,6},{7,8,9}}; int r=arr.length; int c=arr[0].length; int i=0; int j=c-i-1; while(i
class HelloWorld { public static void main(String[] args) { int [][]arr={{1,2,3,4},{5,6,7,8},{9,10,11,12}}; int r=arr.length; int c=arr[0].length; int i=0; int j=1; while(i
#DiagonalSum class HelloWorld { public static void main(String[] args) { int [][] mat= {{1,4,3},{9,4,6},{5,8,1}}; int r = mat.length; int c = mat[0].length; int sum = 0; for(int i = 0; i < r; i++){ System.out.println(mat[i][i]); sum+=mat[i][i]; } System.out.println("Diagonal sum= "+sum); } }
public class Diagonal2DArray { public static void main(String[] args) { int arr[][] = {{1,4,3,2},{9,4,6,1},{5,8,1,8}}; System.out.println("Left Diagonal elements in an array are: ");
class Solution { public boolean isValid(int[][] matrix, int a, int b){ int r=matrix.length; int c=matrix[0].length; int temp=matrix[a][b]; boolean ans=true; a++; b++; while(a
import java.util.*; class HelloWorld { public static void main(String[] args) { int [][] mat={{1,2,3,11},{4,5,6,12},{7,8,9,13}}; int r = mat.length; int c = mat[0].length; int i = 0; int j = i+1; while(i
class HelloWorld { public static void main(String[] args) { int [][]arr={{1,1,4,8},{1,2,5,0},{1,3,6,6}}; int r=arr.length; int c=arr[0].length; /* for(int i=0;i
diagonal next elements class HelloWorld { public static void main(String[] args) { int [ ][ ]mat={{1,2,3,11},{4,5,6,12},{7,8,9,13}}; int r=mat.length; int c=mat[0].length; int i=0; int j=i+1; while(i
import java.util.*; class HelloWorld { public static void main(String[] args) { int[][] arr={{1,2,3,10},{4,5,6,11},{7,8,9,12},{13,14,15,16}}; int c=arr[0].length; int i=0,j=c-1; while(i
class HelloWorld { public static void main(String[] args) { int mat[][]={{1,2,3,11},{4,5,6,12},{7,8,9,13}}; int r=mat.length; int j=mat[0].length-1; for(int i=0;i
// Online Java Compiler // Use this editor to write, compile and run your Java code online class HelloWorld { public static void main(String[] args) { int[][] arr = {{1,2,3,4},{5,6,7,8},{9,10,11,12}}; int row = arr.length; int col = arr[0].length; int i = 0; int j = 2; while(i
Anna plz reply ee java dsa course eppati varaki complete chesthara because we are final yrs and idi chala crucial time, intlo and clg lo full dobbesthunnaru😢, meeru oka maata chepthe maaku clarity osthadhi
@@engineeringanimuthyam ok anna but plz pakka complete cheyyandi vere valla laaga madhyalo vadilesi malli oka year ayyaka continue cheyyadam vaddu plzzz
This can also solve int his way .But I think you are motivating to do by using methods.Am i correct :) Leet Code last Answer: class Solution { public boolean isToeplitzMatrix(int[][] matrix) { boolean ans=true; int r=matrix.length; int c=matrix[0].length; for(int i=1;i
Python apey macha . Ledha Java apey macha . Oka language daily two videos chesi pettuko . Daily oka video upload. Okevela office lo busy ayithe extra video upload chesukovachu . Daily oka video vasthe ni nundi memu consistent ga follow avutham macha . Please 🥺. Anthey gani madhyalo break ayithe vadhu macha
@@engineeringanimuthyam okay anna parvale . We support you 💯. Makosam free ga chesthunnav. Take your time . December ki maku dp varuku complete chesthe nuvve maku devudu 🙏.
@@engineeringanimuthyam bro I am doing striver sheet and day wishes problems in leetcode and other platforms but coming to contest I can solve 1 and at max 2 can you give me tips 🙂🙂
class HelloWorld { public static void main(String[] args) { int[][] arr = {{1,2,3,4},{5,6,7,8},{9,10,11,12}}; int row = arr.length; int col = arr[0].length; int i = 0; int j = 1; while(i
class HelloWorld { public static void main(String[] args) { int arr[][] = {{0,1,2},{3,4,5},{6,7,8}}; int r = arr.length; int c = arr[0].length; int i=0; int j=0; while(i
Nuv thop macha nijanga love u ❤. Intha valuble content maku free ga isthunandhuku
bro such a great content plz don't stop we always support u ❤❤❤
Macha 0Ms lo slove ayyindhi macha break statement use cheydam tho,it beats 100% macha
class HelloWorld {
public static void main(String[] args) {
int nums[][]={{1,3,6},{2,4,8},{5,6,7}};
for(int i=0;i
class love {
public static void main(String[] args) {
int matrix[][]={{1,2,3,4},{5,1,2,3},{9,5,1,2}};
boolean N=true;
int r=matrix.length;
int c=matrix[0].length;
for(int i=0; i
super bro
I understanding the topics.
Int arr[]=(consider a 2 row 2 col matrix)
For(int i =0;i
class HelloWorld {
public static void main(String[] args) {
int arr[ ][ ]={{1,2,3},{4,5,6},{7,8,9}};
int r=arr.length;
int c=arr[0].length;
int i=0;
int j=c-i-1;
while(i
class Solution {
public boolean isToeplitzMatrix(int[][] matrix) {
boolean b=true;
int r=matrix.length;
int c=matrix[0].length;
for(int i=0;i
class HelloWorld {
public static void main(String[] args) {
int [][]arr={{1,2,3,4},{5,6,7,8},{9,10,11,12}};
int r=arr.length;
int c=arr[0].length;
int i=0;
int j=1;
while(i
Na Sugession : rayatam vere dhagara kakkunda code pakkana rasthee kastha clear ga ardham ithadhi macha
Thanks macha for suggestion
Macha..playlist motham enni months lo complete cheyagalavo chepthe dani batti nen preparation strategy plan cheskuntaa!! anyways chala ba cheptunavv💗
4 months
#DiagonalSum
class HelloWorld {
public static void main(String[] args) {
int [][] mat= {{1,4,3},{9,4,6},{5,8,1}};
int r = mat.length;
int c = mat[0].length;
int sum = 0;
for(int i = 0; i < r; i++){
System.out.println(mat[i][i]);
sum+=mat[i][i];
}
System.out.println("Diagonal sum= "+sum);
}
}
Your are really vere level broo❤❤❤
love u macha inthakante em cheppalenu
public class Diagonal2DArray {
public static void main(String[] args) {
int arr[][] = {{1,4,3,2},{9,4,6,1},{5,8,1,8}};
System.out.println("Left Diagonal elements in an array are: ");
for(int i=0;i
class Solution {
public boolean isValid(int[][] matrix, int a, int b){
int r=matrix.length;
int c=matrix[0].length;
int temp=matrix[a][b];
boolean ans=true;
a++;
b++;
while(a
enduku bhayya antha pedda code deniki
"class Solution {
public boolean isToeplitzMatrix(int[][] matrix) {
int r = matrix.length;
int c = matrix[0].length;
for(int i=1;i
bro dsa sheets lo problems link pettu bro ...lots of love
Pdfs lo pedthunna bro will update soon
import java.util.*;
class HelloWorld {
public static void main(String[] args) {
int [][] mat={{1,2,3,11},{4,5,6,12},{7,8,9,13}};
int r = mat.length;
int c = mat[0].length;
int i = 0;
int j = i+1;
while(i
class HelloWorld {
public static void main(String[] args) {
int [][]arr={{1,1,4,8},{1,2,5,0},{1,3,6,6}};
int r=arr.length;
int c=arr[0].length;
/* for(int i=0;i
diagonal next elements
class HelloWorld {
public static void main(String[] args) {
int [ ][ ]mat={{1,2,3,11},{4,5,6,12},{7,8,9,13}};
int r=mat.length;
int c=mat[0].length;
int i=0;
int j=i+1;
while(i
import java.util.*;
class HelloWorld {
public static void main(String[] args) {
int[][] arr={{1,2,3,10},{4,5,6,11},{7,8,9,12},{13,14,15,16}};
int c=arr[0].length;
int i=0,j=c-1;
while(i
🤩🤩
class HelloWorld {
public static void main(String[] args) {
int mat[][]={{1,2,3,11},{4,5,6,12},{7,8,9,13}};
int r=mat.length;
int j=mat[0].length-1;
for(int i=0;i
class HelloWorld {
public static void main(String[] args) {
int[][] arr = {{1,4,2,3},{5,1,7,11},{9,10,1,23}};
int r = arr.length;
int c = arr[0].length;
int i = 0, j = 0;
boolean present = false;
while(i < r && j < c){
if(arr[i][j] == 1){
present = true;
}
i++;
j++;
}
if(present == true){
System.out.println("True");
}else{
System.out.println("False");
}
}
}
int[][] arr = {{1,2,3,98} , {4,5,6,78} , {7,8,9,89}};
int r = arr.length;
int c = arr[0].length;
int i=0;
int j=1;
while(i
// Online Java Compiler
// Use this editor to write, compile and run your Java code online
class HelloWorld {
public static void main(String[] args) {
int[][] arr = {{1,2,3,4},{5,6,7,8},{9,10,11,12}};
int row = arr.length;
int col = arr[0].length;
int i = 0;
int j = 2;
while(i
Anna enka raledhu enti eroju premiere?
import java.util.*;
class HelloWorld {
public static void main(String[] args) {
int[][] arr={{1,2,3,10},{4,5,6,11},{7,8,9,12}};
int r=arr.length;
int c=arr[0].length;
for(int i=0;i0;j--){
System.out.println(arr[i][j]);
break;
}
}
}
}
Reverse diaognal printing
Anna apodhu anna please 🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺
Anna plz reply ee java dsa course eppati varaki complete chesthara because we are final yrs and idi chala crucial time, intlo and clg lo full dobbesthunnaru😢, meeru oka maata chepthe maaku clarity osthadhi
December ending lo aythadhi bro mostly
@@engineeringanimuthyam ok anna but plz pakka complete cheyyandi vere valla laaga madhyalo vadilesi malli oka year ayyaka continue cheyyadam vaddu plzzz
@@engineeringanimuthyam thanks anna for your efforts
int x=0;
int y=1;
while(x
This can also solve int his way .But I think you are motivating to do by using methods.Am i correct :)
Leet Code last Answer:
class Solution {
public boolean isToeplitzMatrix(int[][] matrix) {
boolean ans=true;
int r=matrix.length;
int c=matrix[0].length;
for(int i=1;i
Who are still waiting?
Sorry no videos today was busy with office work. 6pm ki premier lekapothe inka wait cheyaku macha. Thanks for support
Python apey macha . Ledha Java apey macha . Oka language daily two videos chesi pettuko . Daily oka video upload. Okevela office lo busy ayithe extra video upload chesukovachu . Daily oka video vasthe ni nundi memu consistent ga follow avutham macha . Please 🥺. Anthey gani madhyalo break ayithe vadhu macha
@@engineeringanimuthyam okay anna parvale . We support you 💯. Makosam free ga chesthunnav. Take your time . December ki maku dp varuku complete chesthe nuvve maku devudu 🙏.
Your leetcode profile?
@@anithkumarvadlamudi vignesh Reddy Julakanti. Guardian Top 0.8%
@@engineeringanimuthyam I know bro 🙂
@@anithkumarvadlamudi 🤧 telidhu emo ani asking ankunna bro. Asal vidiki ocha nak chepthundu coding ani adginav ani 🤧. All the best macha
Leetcode username macha vigneshreddyjulakanti
@@engineeringanimuthyam bro I am doing striver sheet and day wishes problems in leetcode and other platforms but coming to contest I can solve 1 and at max 2 can you give me tips 🙂🙂
class HelloWorld {
public static void main(String[] args) {
int[][] arr = {{1,2,3,4},{5,6,7,8},{9,10,11,12}};
int row = arr.length;
int col = arr[0].length;
int i = 0;
int j = 1;
while(i
class HelloWorld {
public static void main(String[] args) {
int arr[][] = {{0,1,2},{3,4,5},{6,7,8}};
int r = arr.length;
int c = arr[0].length;
int i=0; int j=0;
while(i