Structurally identical using Tree || coding ninjas || java

Publicado el: 17 septiembre 2023
en el canal de: LIFE CODING WITH JAVA
204
4

‪@java62‬ #codingninja #tree
Structurally identical
Send Feedback
Given two Generic trees, return true if they are structurally identical i.e. they are made of nodes with the same values arranged in the same way.
Sample Input 1 :
10 3 20 30 40 2 40 50 0 0 0 0
10 3 20 30 40 2 40 50 0 0 0 0
Sample Output 1 :
true
Explanation
If we draw the tree for the above inputs, both the trees will look like this. So the answer for this is true.
Sample Input 2 :
10 3 20 30 40 2 40 50 0 0 0 0
10 3 2 30 40 2 40 50 0 0 0 0
Sample Output 2:
false
I try to solve very easy concept So please watch this video .
All java code with easy trick.
By "LIFE CODING WITH JAVA". all program free no any cost So please like ,subscribe, share and comment.
If you any doubt related to any video then comment me. As soon as I will help you .
my contact number: 6206472735..
#LIFE CODING WITH JAVA
@java62
#java
#coding
#with java
#for loops in java
#patterns in java
#while loops in java
#arrays in java
#dynamic in java
#linked list in java
#queue in java
#stack in java
#binary search in java
#merge search in java
#dsa in java
#recursion in java
#arraylist in java
#function in java
#all oops concept in java
#queue
#explain all concept related to java
#history of java
#only java course
#full stack web development
#coding ninjas all questions


En esta página del sitio puede ver el video en línea Structurally identical using Tree || coding ninjas || java de Duración hora minuto segunda en buena calidad , que subió el usuario LIFE CODING WITH JAVA 17 septiembre 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 204 veces y le gustó 4 a los espectadores. Disfruta viendo!