All language subtitles for 022 Exercise Seven (Solution)_en

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional) Download
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
is Icelandic
ig Igbo
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranรฎ)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

All right, it's time to have some fun with some arrays so we have a 2D array of zeros or a matrix of

zeros, if you will.

And we want each column to count up a number.

So zero zero zero one one one two two two.

Since this is a debugging exercise, I'm assuming there's something wrong with the code, so let's run

it and see what's wrong.

And it crashes all right now, as always, line by line, we're going to figure out what's causing the

crash as well as the inevitable bugs that come with it.

OK, so I started to zero.

And as the inner loop runs, I increases instead of J.

Well, that's kind of silly.

This is just going to run forever, eventually hitting three.

This array doesn't have an index of three.

So it's Crash's Index at about.

OK, let's fix that.

Run the code.

OK, another crash index, minus one out of bounds, why is that?

OK, I start at zero.

Everything's fine.

But now is negative one.

It doesn't make sense to decrease the counter by one, I don't know why this person would do that.

Let's run the code.

OK, we're close.

Instead of each column counting up a number, each row is counting up a number.

Hmmm, how do we fix that?

Let me trace the runtime.

There should be zero.

All right, I still zero.

And the next zero should go to the index one zero, but instead it's going to go to the index is zero

one because I zero energy is one.

But if we flip them.

Now, the next zero is going to update the index, one zero.

And I believe that should solve everything.

All right, let's rerun the code.

Perfect, every column counts up a number.

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.