Skip to content

Instantly share code, notes, and snippets.

@krowter
Last active March 9, 2020 14:02
Show Gist options
  • Save krowter/bb4015f3934e74e11336c52641ca80f2 to your computer and use it in GitHub Desktop.
Save krowter/bb4015f3934e74e11336c52641ca80f2 to your computer and use it in GitHub Desktop.
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