From ccc44cd7789af3d9694db95dd3a009773c1f00a9 Mon Sep 17 00:00:00 2001
From: Shubham Parab <71990977+Skparab1@users.noreply.github.com>
Date: Mon, 29 Jan 2024 18:22:45 -0800
Subject: [PATCH] Add files via upload
---
exercise.html | 14 ++++++--------
js/exercise.js | 2 +-
2 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/exercise.html b/exercise.html
index 083877c..83853e4 100644
--- a/exercise.html
+++ b/exercise.html
@@ -17,8 +17,7 @@
@@ -157,12 +156,11 @@ Tree type
How to use
-
1. Construct a binary tree using the left/right buttons to add nodes and delete button to remove nodes or press "random tree" to generate a random tree.
-
2. Type in guesses for results in output box at the bottom of your screen
-
3. Click "check answers" or "view solutions" to verify
-
4. Click "Light-up animation" to see light up animations of traversal
-
5. Click "Reset Tree" to start over
-
6. Click "Share Tree" share your tree with someone else
+
1. Use the left/right buttons to add nodes and delete button to remove nodes.
+
2. Build a binary tree that meets the specifications of the prompt.
+
3. Click "check" to verify answer.
+
4. Click "Light-up animation" to see a light up animation of traversal
+
5. Click "Share Tree" share your tree with someone else
Close
diff --git a/js/exercise.js b/js/exercise.js
index 2058497..e0479e1 100644
--- a/js/exercise.js
+++ b/js/exercise.js
@@ -719,7 +719,7 @@ function createshareURL(){
query = query.replaceAll(" ","%20");
- document.getElementById("shareurldisp").textContent = location.href.replace("/index.html","")+"/share?data="+query;
+ document.getElementById("shareurldisp").textContent = location.href.replace("/exercise.html","")+"/share?data="+query;
}
// this is there so that when you recreate it you know what node you are on