{"id":15925618,"url":"https://github.com/flyfloor/bs-tree","last_synced_at":"2025-09-06T08:34:06.776Z","repository":{"id":20909291,"uuid":"24197064","full_name":"flyfloor/bs-tree","owner":"flyfloor","description":"very simple binary search tree in Ruby","archived":false,"fork":false,"pushed_at":"2014-09-20T05:30:33.000Z","size":187,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-15T11:57:54.719Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flyfloor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-18T17:02:16.000Z","updated_at":"2016-04-13T04:41:17.000Z","dependencies_parsed_at":"2022-08-17T16:01:19.992Z","dependency_job_id":null,"html_url":"https://github.com/flyfloor/bs-tree","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyfloor%2Fbs-tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyfloor%2Fbs-tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyfloor%2Fbs-tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyfloor%2Fbs-tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flyfloor","download_url":"https://codeload.github.com/flyfloor/bs-tree/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241950080,"owners_count":20047587,"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":"2024-10-06T22:02:59.516Z","updated_at":"2025-03-05T01:42:52.016Z","avatar_url":"https://github.com/flyfloor.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BsTree\n\nAn implementation of binary tree, just 4 fun :)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'bs_tree'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install bs_tree\n\n## Usage\n\ntree root element:  \n\n\t\t@root = BsTree::Node.new(5)\n\nand add node:\n\t\n\t\t@root.insert(10)\n\nor\n\t\n\t\t[1, 7, 3, 10, 8].each{|x| @root.insert x }\n\ntree sketch\n\n\t \t 5\n\t   2    7\n\t 1  3     10\n\t        8\n\nTraval, support(dlr, lrd, ldr, level):\n\n\tBsTree::Node.traval(:type, @root)\n\ntype canbe ```dlr```, ```lrd```, ```ldr```, ```level```\n\n\n## Contributing\n\n1. Fork it ( http://github.com/\u003cmy-github-username\u003e/bs_tree/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflyfloor%2Fbs-tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflyfloor%2Fbs-tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflyfloor%2Fbs-tree/lists"}