Last active
March 9, 2020 14:02
-
-
Save krowter/bb4015f3934e74e11336c52641ca80f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hitungDeret(N) { | |
//nilai maksimal dalam array | |
let max = N-1 | |
do { | |
let hasil = [] | |
//lakukan pencarian-brute force di sini | |
//ulangi terus selama jumlah dari hasil tidak sama dengan N | |
} while(jumlah(hasil) !== N) | |
//kembalikan hasil | |
return result | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment