-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbinary-trees.html
More file actions
48 lines (37 loc) · 1.5 KB
/
binary-trees.html
File metadata and controls
48 lines (37 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="binary-trees.css" />
<script src="binary-trees.js"></script>
<title>Trees (Binary Tree)</title>
</head>
<body>
<h1 id="trees-ds">Trees (Binary Search Tree)</h1>
<p id="description">Max level of tree: 3</p>
<div class="operations">
<!-- Creating the Tree -->
<button onclick="createEmptyTree()">Create</button>
<!-- Input Elements -->
<input type="text" id="insertElementInput" placeholder="Insert element" autocomplete="off">
<button onclick="insertElement()">Insert</button>
<!-- Delete Elements -->
<input type="text" id="deleteElementInput" placeholder="Delete element" autocomplete="off">
<button onclick="deleteElement()">Delete</button>
<!-- Display the Tree-->
<button onclick="displayTree()">Display Tree</button>
<!-- Display the Tree Structure-->
<button onclick="displayStructure()">Show Structure</button>
<!-- Return to Main Menu -->
<button onclick="returnMenu()">Back to Main Menu</button>
</div>
<!-- Displaying the Tree-->
<div id="trees-container"></div>
<!-- Displaying the Messages-->
<div id="response"></div>
<!-- Displaying the Messages-->
<div id="structure"></div>
</body>
</html>