{"id":17920613,"url":"https://github.com/nem035/csjs","last_synced_at":"2025-04-03T08:32:35.839Z","repository":{"id":92965318,"uuid":"69786702","full_name":"nem035/csjs","owner":"nem035","description":"Small collection of basic CS Algorithms/Data Structures in JavaScript.","archived":false,"fork":false,"pushed_at":"2018-12-28T04:02:51.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"gh-pages","last_synced_at":"2025-02-08T22:12:48.226Z","etag":null,"topics":["algorithm","computer-science-algorithms","javascript"],"latest_commit_sha":null,"homepage":"https://nem035.github.io/csjs","language":"JavaScript","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/nem035.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2016-10-02T08:26:56.000Z","updated_at":"2020-05-24T16:38:46.000Z","dependencies_parsed_at":"2023-04-24T15:33:27.890Z","dependency_job_id":null,"html_url":"https://github.com/nem035/csjs","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/nem035%2Fcsjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nem035%2Fcsjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nem035%2Fcsjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nem035%2Fcsjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nem035","download_url":"https://codeload.github.com/nem035/csjs/tar.gz/refs/heads/gh-pages","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246966089,"owners_count":20861993,"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":["algorithm","computer-science-algorithms","javascript"],"created_at":"2024-10-28T20:26:21.517Z","updated_at":"2025-04-03T08:32:35.816Z","avatar_url":"https://github.com/nem035.png","language":"JavaScript","readme":"# Computer Science in JavaScript\n\nSmall collection of basic CS Algorithms/Data Structures in JavaScript.\n\n[Live Demos](https://nem035.github.io/csjs/)\n\nThis project started out by me wanting to play around with [CSS variables](https://github.com/nem035/csjs/blob/gh-pages/css/style.css#L5) but then I just went bananas and wrote some algorithms.\n\nIf you're interested in these topics, definitely checkout the [much better version](https://github.com/nzakas/computer-science-in-javascript/) of this project.\n\nEqually recommended is the awesome [Algorithm Visualizer](http://algorithm-visualizer.org).\n\n## Algorithm Implementation/Optimization Hints\n\n- BubbleSort (`do/while`, no need to go past the last swapped element)\n- InsertionSort (we can stop searching as soon as we find insertion point)\n- MergeSort (we can merge left and right subarrays in-place)\n- QuickSort (we can set the pivot as the median of the first, middle and last element)\n\n## Generic Optimization Hints\n\n- Make sure not to (unnecessarily) revisit already visited data.\n\n## Libraries used\n\n- [Ace](https://github.com/ajaxorg/ace)\n- [jQuery](https://github.com/jquery/jquery)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnem035%2Fcsjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnem035%2Fcsjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnem035%2Fcsjs/lists"}