File tree Expand file tree Collapse file tree 4 files changed +340
-265
lines changed
Expand file tree Collapse file tree 4 files changed +340
-265
lines changed Original file line number Diff line number Diff line change 1- ---
2- ---
3-
4- <div class =" tree" >
1+ <div id =" tree" >
52 <canvas id =" main-canvas" >
63
74 </canvas >
85</div >
96<style >
10- . tree {
7+ # tree {
118 display: flex;
129 flex-direction: column;
1310 gap: 20px;
Original file line number Diff line number Diff line change @@ -32,10 +32,19 @@ import { Icon } from 'astro-icon/components'
3232 <input class =" submit-button" type =" submit" value =" Remove" >
3333 </form >
3434 </InfoPanel >
35+ <InfoPanel >
36+ <h2 >Generate Random Binary Tree</h2 >
37+ <form id =" random-form" onsubmit =" return false ;" method =" post" name =" myForm2" >
38+ <div >
39+ <label for =" fname" >Number of nodes (max 20)</label >
40+ <input id =" random-form-input" type =" text" name =" fname" placeholder =" Input any integer" required />
41+ </div >
42+ <input class =" submit-button" type =" submit" value =" Random" >
43+ </form >
44+ </InfoPanel >
3545 <InfoPanel >
3646 <h2 >PreOrder Representation</h2 >
3747 <code id =" preorder-list" ></code >
38- <Button >Preorder Traversals</Button >
3948 </InfoPanel >
4049 <InfoPanel >
4150 <h2 >InOrder Representation</h2 >
You can’t perform that action at this time.
0 commit comments