INDAPlus21 / INDAPlus21/antonul-sorting

Pass

オープン
#1 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
HTML
スター
0
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

説明

Well done Anton!

SORRII Anton. I'm stepping back from my initial harsh comment below. I've come to realise that my assignment instructions are open for missinterpretation. Since you made a good job of completing parts of the assignment, you gain a Pass.

Not only did you give me pesky programming for depricated estetare, you pushed substandard formatting and poor inline documentation; not good; not worthy. And where is your implementation of selection sort and merge sort?

Lets comprimise; I'll give you Pass if you simply submit an implementation of selection sort and merge sort, without the necessary visualisation logic for them.

Lastly, nice pancake sort.

Notes on your code:

I notice that you do not make use of the full extent of javascript for-loops.

Standard for-loop:

for (let i = 0; i < array.length; i++) {/*...*/}

for-loop over index range:

for (let i in array) {/*...*/}

for-loop over elements:

for (let elem of array) {/*...*/}

Have you considered using arithmetic values in arithmetic expressions to avoid code douplication?

Your code:

if (x%2 == 0) {
    for (let i = 0;i <= ofiInsert[x]; i++) {
        fillNumberRed(actionsInsert[x][i],i);
    }
}
else {
    for (let i = 0;i <= ofiInsert[x-1]; i++) {
        fillNumberRed(actionsInsert[x][i],i);
    }
}

No douplications:

for (let i = 0;i <= ofiInsert[x - (x % 2)]; i++) {
    fillNumberRed(actionsInsert[x][i],i);
}

Nice! I actually did not know of this syntax, [array[start], array[i]] = [array[i], array[start]];.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

このissueではファイル、テスト、またはエントリポイントが一切指定されておらず、課題へのフィードバックとJavaScriptの例で構成されています。selection-sortとmerge-sortの要求には取り消し線が引かれており、issueではPassが与えられているため、現時点で確認すべき完了目標はありません。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
frontend, web-dev
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
15/100

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

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