{"id":28538281,"url":"https://github.com/linkedinlearning/python-data-structures-trees-2834010","last_synced_at":"2025-07-10T09:37:49.727Z","repository":{"id":40628583,"uuid":"322054927","full_name":"LinkedInLearning/python-data-structures-trees-2834010","owner":"LinkedInLearning","description":"Python Data Structures: Trees","archived":false,"fork":false,"pushed_at":"2022-04-13T01:48:53.000Z","size":35,"stargazers_count":29,"open_issues_count":0,"forks_count":43,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-06-09T18:12:36.650Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LinkedInLearning.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2020-12-16T17:30:08.000Z","updated_at":"2025-03-09T01:55:43.000Z","dependencies_parsed_at":"2022-07-14T04:10:37.825Z","dependency_job_id":null,"html_url":"https://github.com/LinkedInLearning/python-data-structures-trees-2834010","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LinkedInLearning/python-data-structures-trees-2834010","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinkedInLearning%2Fpython-data-structures-trees-2834010","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinkedInLearning%2Fpython-data-structures-trees-2834010/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinkedInLearning%2Fpython-data-structures-trees-2834010/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinkedInLearning%2Fpython-data-structures-trees-2834010/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinkedInLearning","download_url":"https://codeload.github.com/LinkedInLearning/python-data-structures-trees-2834010/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinkedInLearning%2Fpython-data-structures-trees-2834010/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264221398,"owners_count":23574994,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-09T18:11:55.844Z","updated_at":"2025-07-10T09:37:49.715Z","avatar_url":"https://github.com/LinkedInLearning.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Data Structures: Trees\nThis is the repository for the LinkedIn Learning course Python Data Structures: Trees. The full course is available from [LinkedIn Learning][lil-course-url].\n\n![Python Data Structures: Trees][lil-thumbnail-url] \nWhat are trees, in Python, and how do they fit in with other data structures such as linked lists and graphs? In this course, instructor Ryan Mitchell discusses binary search trees (BSTs) and what you can do with them in a real-world context. Ryan shows you how to build a basic tree with just a few lines of Python. She steps through how to search and traverse a tree, as well as how to print a tree to a terminal. Ryan explains how to add nodes to your tree, delete them, and detect unbalanced trees. When you find an unbalanced tree, it’s important to rebalance it. Ryan walks you through rebalancing four types of unbalanced trees. She concludes with a challenge that features smarter automated rebalancing.\n\n## Instructions\nThis repository has branches for each of the videos in the course. You can use the branch pop up menu in github to switch to a specific branch and take a look at the course at that stage, or you can add `/tree/BRANCH_NAME` to the URL to go to the branch you want to access.\n\n## Branches\nThe branches are structured to correspond to the videos in the course. The naming convention is `CHAPTER#_MOVIE#`. As an example, the branch named `02_03` corresponds to the second chapter and the third video in that chapter. \nSome branches will have a beginning and an end state. These are marked with the letters `b` for \"beginning\" and `e` for \"end\". The `b` branch contains the code as it is at the beginning of the movie. The `e` branch contains the code as it is at the end of the movie. The `main` branch holds the final state of the code when in the course.\n\nWhen switching from one exercise files branch to the next after making changes to the files, you may get a message like this:\n\n    error: Your local changes to the following files would be overwritten by checkout:        [files]\n    Please commit your changes or stash them before you switch branches.\n    Aborting\n\nTo resolve this issue:\n\t\n    Add changes to git using this command: git add .\n\tCommit changes using this command: git commit -m \"some message\"\n\n## Installing\n1. Clone this repository into your local machine using the terminal (Mac), CMD (Windows), or a GUI tool like SourceTree.\n\n\n\n### Instructor\n\n**Ryan Mitchell**\n\n_Senior Staff Instructor at LinkedIn Learning_\n\nCheck out my other courses on [LinkedIn Learning](https://www.linkedin.com/learning/instructors/ryan-mitchell?u=104).\n\n[lil-course-url]: https://www.linkedin.com/learning/python-data-structures-trees\n[lil-thumbnail-url]: https://cdn.lynda.com/course/2834010/2834010-1614101495883-16x9.jpg\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkedinlearning%2Fpython-data-structures-trees-2834010","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinkedinlearning%2Fpython-data-structures-trees-2834010","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkedinlearning%2Fpython-data-structures-trees-2834010/lists"}