mirror of
https://github.com/zrwusa/data-structure-typed.git
synced 2024-11-23 21:04:04 +00:00
31 lines
772 B
HTML
31 lines
772 B
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<title>CDN Test</title>
|
||
|
|
||
|
<script src="https://cdn.jsdelivr.net/npm/data-structure-typed/dist/bundle.js"></script>
|
||
|
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="app">
|
||
|
<ul class="modules">
|
||
|
|
||
|
</ul>
|
||
|
</div>
|
||
|
<script defer>
|
||
|
const $modules = document.querySelector('.modules');
|
||
|
const $avlTree = document.createElement('li');
|
||
|
const $avlTreeSpan = document.createElement('span');
|
||
|
$avlTreeSpan.innerText = 'AVLTree';
|
||
|
$avlTree.append($avlTreeSpan);
|
||
|
const {AVLTree} = dataStructureTyped;
|
||
|
const avlTree = new AVLTree();
|
||
|
|
||
|
avlTree.add(1, 1);
|
||
|
console.log(avlTree.BFS());
|
||
|
$modules.append($avlTree);
|
||
|
</script>
|
||
|
|
||
|
</body>
|
||
|
</html>
|