Update knuth-morris-pratt using ES6
@0himanshu3 已经在做这个了。
开始于 2024年10月10日。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 55/100
- Issue 类型
- 重构
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript
- 领域
- tooling
调研方向
在仓库中搜索 Knuth-Morris-Pratt 实现,并在修改之前检查其当前语法。使用 ES6 语法对该实现进行现代化,同时保留算法现有的行为;当实现完成更新且其搜索结果未发生变化时,工作就完成了。
由索引模型根据 Issue 内容生成。
描述
Description:
Current Behavior:
The current implementation of the Knuth-Morris-Pratt (KMP) algorithm is written in a mix of ES5 and older JavaScript syntax. It consists of a function that efficiently searches for the position of the first occurrence of a specified value in a string.
Proposed Changes:
I propose updating the code to use ES6 features and syntax. This includes leveraging arrow functions, template literals, and other modern JavaScript constructs to enhance readability and maintainability.
Benefits:
- Improved code readability and maintainability due to the use of modern JavaScript syntax.
- Potential performance enhancements through optimized ES6 constructs.
Additional Information:
The updated code will maintain the functionality of the KMP algorithm while utilizing ES6 features to enhance its codebase. This update aims to align the algorithm with modern JavaScript practices.
- 主要语言
- JavaScript
- 星标
- 7.8k
- 派生
- 1.2k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
mgechev/javascript-algorithms 的其他 Issue
-
难度 5/5 一周以上 新手友好度 10/100
mgechev/javascript-algorithms#219 · 1 条评论 ·
-
Implement Binary Search using ES6可能重新可做 @bhatia4404 于 403 天前认领,目前没有进行中的 PR。 未关闭
难度 2/5 1-3 小时 新手友好度 45/100
mgechev/javascript-algorithms#209 · 6 条评论 ·
-
Bitwise Algorithms可能重新可做 @nekhilsaxena 于 836 天前认领,目前没有进行中的 PR。 未关闭
难度 3/5 1-2 天 新手友好度 35/100
mgechev/javascript-algorithms#198 · 6 条评论 ·
-
Introduce ES6 syntax可能重新可做 @Ankush263 于 1597 天前认领,目前没有进行中的 PR。 未关闭
难度 4/5 3-5 天 新手友好度 35/100
mgechev/javascript-algorithms#194 · 2 条评论 ·
-
Move the partitioning algorithms in separate files可能重新可做 @Gurjit11 于 1143 天前认领,目前没有进行中的 PR。 未关闭enhancement
难度 3/5 1-2 天 新手友好度 35/100
mgechev/javascript-algorithms#43 · 4 条评论 ·
查看 mgechev/javascript-algorithms 的全部 Issue
相似的 Issue
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 84/100
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 78/100
blixvip/solana-token-meta#17 ·
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 78/100
blixvip/solana-tx-parse#18 ·
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 82/100
blixvip/solana-rpc-bench#18 ·
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 88/100