{"id":22202095,"url":"https://github.com/syfxlin/code","last_synced_at":"2025-07-27T04:31:29.967Z","repository":{"id":38283788,"uuid":"251040930","full_name":"syfxlin/code","owner":"syfxlin","description":":pencil2: 存放非项目的代码","archived":false,"fork":false,"pushed_at":"2023-01-05T17:54:00.000Z","size":4249,"stargazers_count":7,"open_issues_count":69,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-03T08:33:18.381Z","etag":null,"topics":["algorithms","data-structures","design-patterns","php-middleware","react-store","vue-store"],"latest_commit_sha":null,"homepage":"https://ixk.me","language":"Java","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/syfxlin.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}},"created_at":"2020-03-29T13:39:03.000Z","updated_at":"2022-10-31T03:21:59.000Z","dependencies_parsed_at":"2023-02-04T09:16:30.685Z","dependency_job_id":null,"html_url":"https://github.com/syfxlin/code","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syfxlin%2Fcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syfxlin%2Fcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syfxlin%2Fcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syfxlin%2Fcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syfxlin","download_url":"https://codeload.github.com/syfxlin/code/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227760005,"owners_count":17815626,"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":["algorithms","data-structures","design-patterns","php-middleware","react-store","vue-store"],"created_at":"2024-12-02T16:12:24.392Z","updated_at":"2024-12-02T16:12:25.087Z","avatar_url":"https://github.com/syfxlin.png","language":"Java","readme":"# Code\n\n存放非项目的代码\n\n## 算法\n\n- [二分查找](https://github.com/syfxlin/code/tree/master/algorithm/src/binarySearchDemo)\n- [Boyer-Moore 字符串搜索](https://github.com/syfxlin/code/tree/master/algorithm/src/boyerMooreDemo)\n- [桶排序](https://github.com/syfxlin/code/tree/master/algorithm/src/bucketSortDemo)\n- [简单计算器](https://github.com/syfxlin/code/tree/master/algorithm/src/calculatorDemo)\n- [归并排序](https://github.com/syfxlin/code/tree/master/algorithm/src/mergeSortDemo)\n- [快速排序](https://github.com/syfxlin/code/tree/master/algorithm/src/quickSortDemo)\n- [希尔排序](https://github.com/syfxlin/code/tree/master/algorithm/src/shellSortDemo)\n\n## 数据结构\n\n- [数组列表](https://github.com/syfxlin/code/tree/master/data-struct/src/MyArrayListDemo)\n  - 二分查找\n- [图(old)](https://github.com/syfxlin/code/tree/master/data-struct/src/MyGraphDemo)\n- [双向链表](https://github.com/syfxlin/code/tree/master/data-struct/src/MyLinkedListDemo)\n  - 栈/队列\n  - 冒泡排序/快速排序\n  - 链表实现的优先队列\n- [有向/无向图(邻接表)](https://github.com/syfxlin/code/tree/master/data-struct/src/MyNewGraphDemo)\n  - 转换成邻接矩阵\n  - 获取顶点的度\n  - 获取孤立点/悬挂点\n  - 获取联通区域列表\n  - DFS/BFS\n  - 判断是否联通\n  - Kruskal 最小生成树\n  - Dijkstra 最短路径\n- [单向链表](https://github.com/syfxlin/code/tree/master/data-struct/src/MySingleLinkedListDemo)\n  - 同双向链表\n- [跳表](https://github.com/syfxlin/code/tree/master/data-struct/src/MySkipListDemo)\n- [二叉树(链表)](https://github.com/syfxlin/code/tree/master/data-struct/src/MyTreeDemo)\n  - 前中后遍历和层次遍历\n  - 链表二叉树和数组二叉树互转\n  - 广义表和二叉树互转\n  - 叶节点列表/遍历\n  - 是否是完全二叉树\n  - BST 二叉搜索树(添加/搜索/删除)\n  - 旋转二叉树(左旋/右旋)\n  - Heap 堆\n  - 前序遍历构建完全二叉树\n- [字典树](https://github.com/syfxlin/code/tree/master/data-struct/src/MyTrieTreeDemo)\n\n## 设计模式\n\n\u003e 由于 PHP 有一些局限性，无法完全的展示设计模式，比如单例的多种实现线程安全等，所以我打算用 Java 重写一下这些设计模式\n\n- [单例模式](https://github.com/syfxlin/code/tree/master/design-pattern-php/Singleton) `Singleton`\n- [工厂模式](https://github.com/syfxlin/code/tree/master/design-pattern-php/Factory) `Factory`\n  - [简单/静态工厂模式](https://github.com/syfxlin/code/blob/master/design-pattern-php/Factory/SimpleFactory.php) `SimpleFactory`\n  - [工厂方法模式](https://github.com/syfxlin/code/blob/master/design-pattern-php/Factory/FactoryMethod.php) `FactoryMethod`\n- [建造者模式](https://github.com/syfxlin/code/tree/master/design-pattern-php/Builder) `Builder`\n- [门面模式](https://github.com/syfxlin/code/tree/master/design-pattern-php/Facade) `Facade`\n- [观察者模式](https://github.com/syfxlin/code/tree/master/design-pattern-php/Observer) `Observer`\n- [适配器模式](https://github.com/syfxlin/code/tree/master/design-pattern-php/Adapter) `Adapter`\n  - [类的适配器模式](https://github.com/syfxlin/code/tree/master/design-pattern-php/Adapter/ClassAdapter.php)\n  - [对象的适配器模式](https://github.com/syfxlin/code/tree/master/design-pattern-php/Adapter/ObjectAdapter.php)\n- [依赖注入](https://github.com/syfxlin/code/tree/master/design-pattern-php/DI) `DI`\n- [控制反转](https://github.com/syfxlin/code/tree/master/design-pattern-php/IoC) `IoC, PSR-11`\n- [管道设计](https://github.com/syfxlin/code/tree/master/design-pattern-php/Pipeline) `Pipeline`\n- [装饰模式](https://github.com/syfxlin/code/tree/master/design-pattern-php/Decorator) `Decorator`\n- [代理模式](https://github.com/syfxlin/code/tree/master/design-pattern-php/Proxy) `Proxy`\n- [组合模式](https://github.com/syfxlin/code/tree/master/design-pattern-php/Composite) `Composite`\n- [迭代器模式](https://github.com/syfxlin/code/tree/master/design-pattern-php/Iterator) `Iterator`\n- [命令模式](https://github.com/syfxlin/code/tree/master/design-pattern-php/Command) `Command`\n- [策略模式](https://github.com/syfxlin/code/tree/master/design-pattern-php/Strategy) `Strategy`\n- [桥接模式](https://github.com/syfxlin/code/tree/master/design-pattern-php/Bridge) `Bridge`\n- [原型模式](https://github.com/syfxlin/code/tree/master/design-pattern-php/Prototype) `Prototype`\n- [模板模式](https://github.com/syfxlin/code/tree/master/design-pattern-php/Template) `Template`\n- [状态模式](https://github.com/syfxlin/code/tree/master/design-pattern-php/State) `State`\n- [责任链模式](https://github.com/syfxlin/code/tree/master/design-pattern-php/ChainOfResponsibilities) `Chain Of Responsibilities`\n\n## 其他\n\n- [PHP 中间件](https://github.com/syfxlin/blog-code/tree/master/php-middleware) `PSR-15, Pipeline` - [博客文章](https://blog.ixk.me/middleware-implementation-with-php.html)\n- [React Store](https://github.com/syfxlin/blog-code/tree/master/react-store) `TypeScript`\n- [Vue Store](https://github.com/syfxlin/blog-code/tree/master/vue-store) `JavaScript`\n- [Vue 3 Store](https://github.com/syfxlin/code/tree/master/vue3-ts-store) `TypeScript`\n- [MVVM](https://github.com/syfxlin/code/tree/master/MVVM) `JavaScript, Proxy`\n\n## 一些乱七八糟的文件\n\n- [IDEA Atom One Dark Pro 配色文件](https://github.com/syfxlin/blog-code/tree/master/other/Atom-One-Dark-Pro.icls)\n- [PowerShell Profile 配置文件](https://github.com/syfxlin/blog-code/tree/master/other/posh-profile.ps1)\n- [PowerShell 设置代理脚本](https://github.com/syfxlin/blog-code/tree/master/other/posh-proxy.ps1)\n- [Windows Terminal 配置文件](https://github.com/syfxlin/blog-code/tree/master/other/windows-terminal-profile.json)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyfxlin%2Fcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyfxlin%2Fcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyfxlin%2Fcode/lists"}