Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,18 +1,3 @@
|
|
| 1 |
-
# ============================================================
|
| 2 |
-
# 🔍 Binary Search Game — Two-Stage with Remaining Range View
|
| 3 |
-
# ============================================================
|
| 4 |
-
# Author: Your Name
|
| 5 |
-
# Course: CISC-121
|
| 6 |
-
# Description:
|
| 7 |
-
# 1) Click "Generate List" to create a random sorted list.
|
| 8 |
-
# 2) Enter a number and click "Run Binary Search".
|
| 9 |
-
# UI shows:
|
| 10 |
-
# • the list,
|
| 11 |
-
# • per-step decision,
|
| 12 |
-
# • per-step remaining range (selected half),
|
| 13 |
-
# • final result.
|
| 14 |
-
# ============================================================
|
| 15 |
-
|
| 16 |
import random
|
| 17 |
import gradio as gr
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import random
|
| 2 |
import gradio as gr
|
| 3 |
|