FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
algorithm/java/src/com.al/BSTTest.java at master · LionCoder4ever/algorithm · GitHub
LionCoder4ever
/
algorithm
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
13
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
algorithm
/
java
/
src
/
com.al
/
BSTTest.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
22 lines (21 loc) · 604 Bytes
Breadcrumbs
algorithm
/
java
/
src
/
com.al
/
BSTTest.java
Copy path
File metadata and controls
22 lines (21 loc) · 604 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package
com
.
al
;
public
class
BSTTest
{
public
static
void
main
(
String
[]
args
) {
BST
bst
=
new
BST
();
BST
.
Node
root
=
bst
.
new
Node
(
33
);
int
[]
arr
= {
16
,
50
,
13
,
18
,
34
,
58
,
15
,
17
,
25
,
51
,
66
,
19
,
27
,
55
};
for
(
int
i1
:
arr
) {
bst
.
insert
(
root
,
i1
);
}
bst
.
preOrder
(
root
);
System
.
out
.
println
(
"delete nodes ==========="
);
try
{
bst
.
delete
(
root
,
13
);
bst
.
delete
(
root
,
18
);
bst
.
delete
(
root
,
55
);
}
catch
(
Exception
e
) {
e
.
printStackTrace
();
}
bst
.
inOrder
(
root
);
}
}
Back
|
FazBrowse Home
|
New Git URL