From ea7a3fdfbbbb0b7e3b0100796009047a89707b5e Mon Sep 17 00:00:00 2001 From: "steinkirch.eth, phd" Date: Sat, 15 Jul 2023 21:57:39 -0700 Subject: [PATCH] start refactor --- README.md | 103 ++++++------------ arrays_and_strings/README.md | 0 bit_manipulation/README.md | 0 600_stars.png => book/600_stars.png | Bin book/README.md | 15 --- .../ebook_src/requirements.txt | 0 book/requirements.txt | 13 --- concurrency/README.md | 0 linked_lists/README.md | 0 math_and_logic/README.md | 0 object_oriented_design/README.md | 0 recursion_and_dp/README.md | 0 sorting_and_searching/README.md | 0 stacks_and_queues/README.md | 0 trees_and_graphs/README.md | 0 15 files changed, 34 insertions(+), 97 deletions(-) create mode 100644 arrays_and_strings/README.md create mode 100644 bit_manipulation/README.md rename 600_stars.png => book/600_stars.png (100%) delete mode 100644 book/README.md rename requirements.txt => book/ebook_src/requirements.txt (100%) delete mode 100644 book/requirements.txt create mode 100644 concurrency/README.md create mode 100644 linked_lists/README.md create mode 100644 math_and_logic/README.md create mode 100644 object_oriented_design/README.md create mode 100644 recursion_and_dp/README.md create mode 100644 sorting_and_searching/README.md create mode 100644 stacks_and_queues/README.md create mode 100644 trees_and_graphs/README.md diff --git a/README.md b/README.md index b666373..0d5b5e0 100644 --- a/README.md +++ b/README.md @@ -1,87 +1,52 @@ -# Python, Algorithms, and Data Structures (Book) +## πŸ‘ΎπŸ master python with algorithms (my book πŸ–€)
-#### This repository contains my book on Algorithms and Data Structure in Python, published by [Hanbit Media](https://www.hanbit.co.kr/store/books/look.php?p_code=B8465804191) in 2014. - -#### πŸ‘‰ [4.6/5 stars and 33 reviews for a book written in school, not bad :)](https://www.hanbit.co.kr/store/books/look.php?p_code=B8465804191) - -#### πŸ‘‰ [here is a pic when this repo used to have 600+ stars and 300 forks (before πŸ’© happened 😞)](600_stars.png) - -#### πŸ‘‰ [this book as a reference for a CMU computer science class](https://www.andrew.cmu.edu/user/ramesh/teaching/course/48784.pdf) - -
- ---- -

- -

- - - -

- -

- - - - - -

- -

- -

- - -

- +


----- +### in this repo
-### Summary +* **[πŸ“– my book on algorithms and data structure in python (2014)](book)**: + - **one of the first ever publication to solve classic computer science algorithm and data structure problems in python.** + - **[it was published by hanbit media in 2014](https://www.hanbit.co.kr/store/books/look.php?p_code=B8465804191)**. + - **[as of today, has 4.6/5 stars and 33 reviews](https://www.hanbit.co.kr/store/books/look.php?p_code=B8465804191)**. + - **[this book as a reference for a CMU computer science class](https://www.andrew.cmu.edu/user/ramesh/teaching/course/48784.pdf)**. + - **[here is a pic when this repo used to have 600+ stars and 300 forks (before πŸ’© happened 😞)](book/600_stars.png)**. -* This book as one of the first publications to solve the classic computer science algorithm and data structure problems in Python. - -* [Here is the PDF for the free e-book](https://github.com/bt3gl/Book_on_Python_Algorithms_and_Data_Structure/blob/master/book/ebook_pdf/book_second_edition.pdf). - -* [Here is the source code, including abstract structures, bitwise operations, builtin Python data structures, searching and sorting, trees, and real interview problems](https://github.com/bt3gl/Book_on_Python_Algorithms_and_Data_Structure/tree/master/book/ebook_src). - -
- ---- -
-### [The Zen of Python](https://www.python.org/dev/peps/pep-0020/) + + -``` -Beautiful is better than ugly. -Explicit is better than implicit. -Simple is better than complex. -Complex is better than complicated. -Flat is better than nested. -Sparse is better than dense. -Readability counts. -Special cases aren't special enough to break the rules. -Although practicality beats purity. -Errors should never pass silently. -Unless explicitly silenced. -In the face of ambiguity, refuse the temptation to guess. -There should be one-- and preferably only one --obvious way to do it. -Although that way may not be obvious at first unless you're Dutch. -Now is better than never. -Although never is often better than *right* now. -If the implementation is hard to explain, it's a bad idea. -If the implementation is easy to explain, it may be a good idea. -Namespaces are one honking great idea -- let's do more of those! -``` + +

+ + +
+
+
+ + +* **πŸ“– algorithms and data structures revisited (2023)**: + * πŸ˜πŸ˜πŸ™πŸ˜. **[arrays, vectors, strings](arrays_and_strings)** + * πŸ˜πŸ˜πŸ™πŸ™. **[linked lists](linked_lists)** + * πŸ˜πŸ™πŸ˜πŸ˜. **[stacks and queues](stacks_and_queues)** + * πŸ˜πŸ™πŸ˜πŸ™. **[bit manipulation](bit_manipulation)** + * πŸ˜πŸ™πŸ™πŸ˜. **[math and logic](math_and_logic)** + * πŸ˜πŸ™πŸ™πŸ™. **[object-oriented design](object_oriented_design)** + * πŸ™πŸ˜πŸ˜πŸ˜. **[recursion and dynamic programming](recursion_and_dp)** + * πŸ™πŸ˜πŸ˜πŸ™. **[sorting and searching](sorting_and_searching)** + * πŸ™πŸ˜πŸ™πŸ˜. **[concurrency](concurrency)** + * πŸ™πŸ˜πŸ™πŸ™. **[trees and graphs](trees_and_graphs/)** + + + \ No newline at end of file diff --git a/arrays_and_strings/README.md b/arrays_and_strings/README.md new file mode 100644 index 0000000..e69de29 diff --git a/bit_manipulation/README.md b/bit_manipulation/README.md new file mode 100644 index 0000000..e69de29 diff --git a/600_stars.png b/book/600_stars.png similarity index 100% rename from 600_stars.png rename to book/600_stars.png diff --git a/book/README.md b/book/README.md deleted file mode 100644 index d8ca98c..0000000 --- a/book/README.md +++ /dev/null @@ -1,15 +0,0 @@ -## Python, Algorithms and Data Structures (2014) - -[Download PDF (first edition, published by Hanbit Media)](https://github.com/bt3gl/Python-and-Algorithms-and-Data-Structures/blob/master/First_edition_2014/ebook_pdf/book_second_edition.pdf). - - -## To run the snippet: - -Install dependencies in a [virtual environment](https://coderwall.com/p/8-aeka): - -``` -virtualenv venv -source venv/bin/activate -pip install -r requirements.txt -``` - diff --git a/requirements.txt b/book/ebook_src/requirements.txt similarity index 100% rename from requirements.txt rename to book/ebook_src/requirements.txt diff --git a/book/requirements.txt b/book/requirements.txt deleted file mode 100644 index d978c3a..0000000 --- a/book/requirements.txt +++ /dev/null @@ -1,13 +0,0 @@ -Flask==2.2.5 -SQLAlchemy==0.9.7 -bpython==0.13.1 -coverage==3.7.1 -curtsies==0.0.34 -graphviz==0.4.2 -ipython==8.10.0 -matplotlib==1.3.1 -nose==1.3.0 -numpy==1.22.0 -scapy==2.4.1 -scikit-learn==0.14.1 -scipy==1.10.0 \ No newline at end of file diff --git a/concurrency/README.md b/concurrency/README.md new file mode 100644 index 0000000..e69de29 diff --git a/linked_lists/README.md b/linked_lists/README.md new file mode 100644 index 0000000..e69de29 diff --git a/math_and_logic/README.md b/math_and_logic/README.md new file mode 100644 index 0000000..e69de29 diff --git a/object_oriented_design/README.md b/object_oriented_design/README.md new file mode 100644 index 0000000..e69de29 diff --git a/recursion_and_dp/README.md b/recursion_and_dp/README.md new file mode 100644 index 0000000..e69de29 diff --git a/sorting_and_searching/README.md b/sorting_and_searching/README.md new file mode 100644 index 0000000..e69de29 diff --git a/stacks_and_queues/README.md b/stacks_and_queues/README.md new file mode 100644 index 0000000..e69de29 diff --git a/trees_and_graphs/README.md b/trees_and_graphs/README.md new file mode 100644 index 0000000..e69de29