adding level order traversal animation
This commit is contained in:
20
animations/trees/level_order/index.html
Normal file
20
animations/trees/level_order/index.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user