{"id":23402638,"url":"https://github.com/martincastroalvarez/data-structures-java","last_synced_at":"2025-04-08T22:23:18.473Z","repository":{"id":106552258,"uuid":"555877694","full_name":"MartinCastroAlvarez/data-structures-java","owner":"MartinCastroAlvarez","description":"Data Structures in Java","archived":false,"fork":false,"pushed_at":"2023-04-17T13:17:20.000Z","size":6094,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-14T17:37:33.266Z","etag":null,"topics":["array","binary-search","data-structures","hash-table","java","linked-list","queue","set","stack","tree"],"latest_commit_sha":null,"homepage":"https://martincastroalvarez.com","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MartinCastroAlvarez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-22T14:46:29.000Z","updated_at":"2023-03-13T05:04:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"2efeb496-f4cb-4e40-bc07-b08d2e4e219a","html_url":"https://github.com/MartinCastroAlvarez/data-structures-java","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/MartinCastroAlvarez%2Fdata-structures-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinCastroAlvarez%2Fdata-structures-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinCastroAlvarez%2Fdata-structures-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinCastroAlvarez%2Fdata-structures-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MartinCastroAlvarez","download_url":"https://codeload.github.com/MartinCastroAlvarez/data-structures-java/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247935892,"owners_count":21020911,"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":["array","binary-search","data-structures","hash-table","java","linked-list","queue","set","stack","tree"],"created_at":"2024-12-22T12:29:51.093Z","updated_at":"2025-04-08T22:23:18.451Z","avatar_url":"https://github.com/MartinCastroAlvarez.png","language":"Java","readme":"# Data Structures in Java\n\n![wallpaper.jpg](./wallpaper.jpg)\n\n## [Binary Tree](./BinaryTree.java)\n```bash\njavac BinaryTree.java \u0026\u0026 java BinaryTree\n```\n```bash\nInsert a number or 'exit' to quit: \n\u003e\u003e\u003e 1\nAdded: 1\nInsert a number or 'exit' to quit: \n\u003e\u003e\u003e 1\nAdded: 1\nInsert a number or 'exit' to quit: \n\u003e\u003e\u003e 5\nAdded: 5\nInsert a number or 'exit' to quit: \n\u003e\u003e\u003e 10\nAdded: 10\nInsert a number or 'exit' to quit: \n\u003e\u003e\u003e 3\nAdded: 3\nInsert a number or 'exit' to quit: \n\u003e\u003e\u003e 8\nAdded: 8\nInsert a number or 'exit' to quit: \n\u003e\u003e\u003e 20\nAdded: 20\nInsert a number or 'exit' to quit: \n\u003e\u003e\u003e 3\nAdded: 3\nInsert a number or 'exit' to quit: \n\u003e\u003e\u003e 6\nAdded: 6\nInsert a number or 'exit' to quit: \n\u003e\u003e\u003e 6\nAdded: 6\nInsert a number or 'exit' to quit: \n\u003e\u003e\u003e 5\nAdded: 5\nInsert a number or 'exit' to quit: \n\u003e\u003e\u003e exit\nSorted values:\n1 1 3 3 5 5 6 6 8 10 20\n```\n\n## [Set](./Set.java)\n```bash\njavac Set.java \u0026\u0026 java Set \n```\n```bash\nCreating Set A: \nInsert a number or 'exit' to continue: \n\u003e\u003e\u003e 1\nAdded: 1\nInsert a number or 'exit' to continue: \n\u003e\u003e\u003e 2\nAdded: 2\nInsert a number or 'exit' to continue: \n\u003e\u003e\u003e 3\nAdded: 3\nInsert a number or 'exit' to continue: \n\u003e\u003e\u003e 4\nAdded: 4\nInsert a number or 'exit' to continue: \n\u003e\u003e\u003e exit\nCreating Set B: \nInsert a number or 'exit' to continue: \n\u003e\u003e\u003e 3\nAdded: 3\nInsert a number or 'exit' to continue: \n\u003e\u003e\u003e 4\nAdded: 4\nInsert a number or 'exit' to continue: \n\u003e\u003e\u003e 5\nAdded: 5\nInsert a number or 'exit' to continue: \n\u003e\u003e\u003e 6\nAdded: 6\nInsert a number or 'exit' to continue: \n\u003e\u003e\u003e exit\nSet A: [1, 2, 3, 4]\nSet B: [3, 4, 5, 6]\nUnion: [1, 2, 3, 4, 5, 6]\nDifference: [1, 2, 5, 6]\nIntersection: [3, 4]\n```\n\n## [Recursion](./Recursion.java)\n```bash\njavac Recursion.java \u0026\u0026 java Recursion\n```\n```bash\nWhat is value `n`?\n\u003e\u003e\u003e 7\nWhat is value `m`?\n\u003e\u003e\u003e 6\nCalculating: A(7, 6):\n\u003e\u003e\u003e 21\nn=1: 1  \nn=2: 1  1  \nn=3: 1  3  1  \nn=4: 1  7  6  1  \nn=5: 1  15  25  10  1  \nn=6: 1  31  90  65  15  1  \nn=7: 1  63  301  350  140  21  \n```\n\n## [Complexity](./Complexity.java)\n```bash\njavac Complexity.java \u0026\u0026 java Complexity \n```\n\n## [Linked List](./LinkedList.java)\n```bash\njavac LinkedList.java \u0026\u0026 java LinkedList\n```\n```bash\nInsert a comma separated list of values:\n\u003e\u003e\u003e 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17\nLinkedList:\n|17|-\u003e|16|-\u003e|15|-\u003e|14|-\u003e|13|-\u003e|12|-\u003e|11|-\u003e|10|-\u003e|9|-\u003e|8|-\u003e|7|-\u003e|6|-\u003e|5|-\u003e|4|-\u003e|3|-\u003e|2|-\u003e|1|\nInverted LinkedList:\n|1|-\u003e|2|-\u003e|3|-\u003e|4|-\u003e|5|-\u003e|6|-\u003e|7|-\u003e|8|-\u003e|9|-\u003e|10|-\u003e|11|-\u003e|12|-\u003e|13|-\u003e|14|-\u003e|15|-\u003e|16|-\u003e|17|\n```\n```bash\nInsert a comma separated list of values:\n\u003e\u003e\u003e \nLinkedList:\n|1|\nInverted LinkedList:\n|1|\n```\n\n## [Stacks \u0026 Queues](./StackedQueues.java)\n```bash\njavac StackedQueue.java \u0026\u0026 java StackedQueue\n```\n```bash\nInsert a comma separated list of values:\n\u003e\u003e\u003e 1,2,3,4,5,6,7,8,9,10\nHow many elements to unshift from the Queue?\n\u003e\u003e\u003e 3\nQueue:\n10, 9, 8, 7, 6, 5, 4, \n```\n```bash\nInsert a comma separated list of values:\n\u003e\u003e\u003e 1,2,4 \nHow many elements to unshift from the Queue?\n\u003e\u003e\u003e 5\nQueue:\n\u003cempty\u003e\n```\n```bash\nInsert a comma separated list of values:\n\u003e\u003e\u003e 1\nHow many elements to unshift from the Queue?\n\u003e\u003e\u003e 0\nQueue:\n1, \n```\n\n## [Hash Map](./HashMap.java)\n```bash\njavac HashTable.java \u0026\u0026 java HashTable\n```\n```bash\nHashMap:\n0 -\u003e 96-14556 Delia Gutiérrez 5.0\n1 -\u003e 96-11797 Emely Arraiz 5.0\n2 -\u003e 96-14551 Martha Arteaga 4.5\n3 -\u003e 96-11052 Wilmer Pereira 4.5\n4 -\u003e 96-12965 Lázaro Rech 4.5\n5 -\u003e 96-14145 Steven Andrea 4.5\n6 -\u003e 96-13955 Maria Ortega 5.0\n7 -\u003e 96-12087 Alberto Mendoza 4.5\n8 -\u003e 96-14477 Oscar Meza 3.0\n9 -\u003e 96-14878 Maria Fuenmayor 5.0\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartincastroalvarez%2Fdata-structures-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartincastroalvarez%2Fdata-structures-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartincastroalvarez%2Fdata-structures-java/lists"}