code-chronicles-code / code-chronicles-code/leetcode-curriculum
Add a `partition` goody
- 主要言語
- TypeScript
- スター
- 20
- フォーク
- 12
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Inspiration from Ruby: https://rubydoc.info/stdlib/core/Enumerable:partition
A reasonable place for it to live would be on `Iterator.prototype`, then anything that can give us an iterator can also be partitioned.
Should we return two arrays like Ruby does or two iterators? I'm currently thinking that two arrays is fine. Two iterators would only be better if these iterators are lazy, but that doesn't seem worth the overhead currently.
コントリビューションガイド
調査の方向性
Start by locating Iterator.prototype and reviewing the existing goodies attached to it. Resolve whether partition should return two arrays or two iterators, then implement the selected behavior and add coverage showing that an iterator can be partitioned into the two expected results.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- tooling
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100