Skip to content

reksavertx#6

Open
reksavertx wants to merge 2 commits into
Ethereum-Jakarta:mainfrom
reksavertx:main
Open

reksavertx#6
reksavertx wants to merge 2 commits into
Ethereum-Jakarta:mainfrom
reksavertx:main

Conversation

@reksavertx
Copy link
Copy Markdown

Done mas harkon, mohon direview hehehehe

@@ -4,6 +4,14 @@

function findSmallestInt(arr) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ini benar tapi kurang efisien, bisa dengan loop sekali aja. Ga perlu pakai sorting juga bisa

Comment thread Loop-Array/positifSum.js
//code here
let hasil = 0;
let i = 0;
while(true) { // kali-kali pake while wkwkwkwk
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While i < arr.length lebih clean

}
}
}
if(i !== num){pattern+="\n";} // seperti biasa. aesthetic is important wkwkwk
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wkwkwk

Comment thread Loop-Array/findHighest.js
@@ -4,8 +4,15 @@

function findHighestInt(arr) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ini juga, tanpa sorting sebenernya bisa, tapi gapapa karena hasilnya benar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants