21 lines
590 B
HTML
21 lines
590 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Binary Tree: Level Order Traversal</title>
|
|
<script src="../../konva.js"></script>
|
|
</head>
|
|
<body>
|
|
|
|
<h1>Binary Tree: Level Order Traversal</h1>
|
|
<p>This animation shows how to traverse a binary tree by levels. Click the "next step" button to run the animation.</p>
|
|
|
|
<label>level order traversal</label> <input type="text" id="textIn"><button onclick="start()">Start</button>
|
|
<br>
|
|
<button onclick="nextstep()">next step</button>
|
|
|
|
<div id="container"></div>
|
|
<script src="level_order.js"></script>
|
|
</body>
|
|
</html>
|