-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
44 lines (41 loc) · 1.5 KB
/
index.html
File metadata and controls
44 lines (41 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Algorithm Visualizer</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>🚀 Algorithm Visualizer</h1>
<!-- Algorithm Selection -->
<section>
<h2>📊 Algorithm Demonstrations</h2>
<div class="controls">
<select id="algorithm-select">
<option value="">Select an algorithm...</option>
</select>
<button id="run-algo">Run Algorithm</button>
</div>
<div id="animation"></div>
<p id="explanation">Select an algorithm and click "Run Algorithm" to see it in action!</p>
</section>
<!-- Practice Problems -->
<section>
<h2>💻 Practice Problems</h2>
<div class="controls">
<select id="problem-select">
<option value="Sliding Window - Max Sum">Sliding Window - Max Sum</option>
<option value="Two Pointers - Pair Sum">Two Pointers - Pair Sum</option>
<option value="Next Greater Element - Stack">Next Greater Element - Stack</option>
<option value="Reverse Linked List">Reverse Linked List</option>
<option value="Fibonacci - Recursion">Fibonacci - Recursion</option>
</select>
<button id="run-user-code">Run My Code</button>
</div>
<textarea id="user-code" rows="15" placeholder="Your code will appear here..."></textarea>
<div id="practice-animation"></div>
<p id="practice-explanation">Select a problem to get started!</p>
</section>
<script type="module" src="script.js"></script>
</body>
</html>