code-chronicles-code / code-chronicles-code/leetcode-curriculum

Add a `partition` goody

オープン
#115 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement typescript
主要言語
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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。