Allow empty `ConsistentPermutation`
还没有人认领这个 Issue。
评估
调研方向
从 crates/consistent-choose-k/src/consistent_permutation.rs 开始,重点查看第 156 行的 assertion 以及 issue 中提到的下一个函数。验证当前如何处理 n = 0,并确认无需在调用方进行特殊处理即可构造空排列。
由索引模型根据 Issue 内容生成。
描述
Is there any reason ConsistentPermutation doesn't allow n to be zero - as per this assertion.
This results in special casing when you're constructing the permutations. We might need a branch at the top of the next function to check, but it should be highly predictable.
- 主要语言
- Rust
- 星标
- 134
- 派生
- 24
- 平均合并
- 16 小时 27 分钟
- 30 天内合并 PR
- 11
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/rust-gems 的其他 Issue
-
难度 5/5 一周以上 新手友好度 30/100
-
难度 4/5 3-5 天 新手友好度 38/100
-
难度 5/5 一周以上 新手友好度 25/100
-
难度 5/5 一周以上 新手友好度 35/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
gitbutlerapp/gitbutler#15998 · 1 条评论 ·
-
bug triage:deciding
难度 1/5 1 小时以内 新手友好度 88/100
open-telemetry/otel-arrow#4132 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 84/100