Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,17 +1,44 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
def main():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
st.title("Popular Data Structures")
|
| 5 |
|
| 6 |
if st.button("What are the most popular data structures?"):
|
| 7 |
-
st.
|
| 8 |
-
st.
|
| 9 |
-
st.
|
| 10 |
-
st.
|
| 11 |
-
st.
|
| 12 |
-
st.
|
| 13 |
-
st.
|
| 14 |
-
st.
|
| 15 |
|
| 16 |
if __name__ == "__main__":
|
| 17 |
main()
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
def main():
|
| 4 |
+
st.set_page_config(page_title="Popular Data Structures")
|
| 5 |
+
|
| 6 |
+
st.markdown(
|
| 7 |
+
"""
|
| 8 |
+
<style>
|
| 9 |
+
body {
|
| 10 |
+
background-color: #FFDEE9;
|
| 11 |
+
text-align: center;
|
| 12 |
+
}
|
| 13 |
+
.stButton>button {
|
| 14 |
+
background-color: #FF1493;
|
| 15 |
+
color: white;
|
| 16 |
+
font-size: 18px;
|
| 17 |
+
border-radius: 10px;
|
| 18 |
+
width: 300px;
|
| 19 |
+
height: 50px;
|
| 20 |
+
display: block;
|
| 21 |
+
margin: auto;
|
| 22 |
+
}
|
| 23 |
+
.stMarkdown {
|
| 24 |
+
text-align: center;
|
| 25 |
+
}
|
| 26 |
+
</style>
|
| 27 |
+
""",
|
| 28 |
+
unsafe_allow_html=True
|
| 29 |
+
)
|
| 30 |
+
|
| 31 |
st.title("Popular Data Structures")
|
| 32 |
|
| 33 |
if st.button("What are the most popular data structures?"):
|
| 34 |
+
st.markdown("**Here are some of the most popular data structures:**")
|
| 35 |
+
st.markdown("- Arrays")
|
| 36 |
+
st.markdown("- Linked Lists")
|
| 37 |
+
st.markdown("- Stacks")
|
| 38 |
+
st.markdown("- Queues")
|
| 39 |
+
st.markdown("- Hash Tables")
|
| 40 |
+
st.markdown("- Trees (e.g., Binary Trees, BST, AVL Trees)")
|
| 41 |
+
st.markdown("- Graphs")
|
| 42 |
|
| 43 |
if __name__ == "__main__":
|
| 44 |
main()
|