BuK/IIm21/Vorlesung 6 Hildebrand
Aus ProgrammingWiki
Wiki-Quelltext dieser Seite.
<language>Javascript</language>
Folie 20:
<code id="6267a2bbc4b5a">
function createXWord(list,indexes){
word = ""
for(i = 0; i < indexes.length; i++){
word += list[indexes[i]-1][0]
}
return word
}
function createYWord(list,indexes){
word = ""
for(i = 0; i < indexes.length; i++){
word += list[indexes[i]-1][1]
}
return word
}
</code>
<run id="6267a2bbc4ba8">
k = [["001","0"],["01","011"],["01","101"],["10","001"]]
</run>