All language subtitles for 14. General SWAP in Programming

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)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
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
id Indonesian
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

What is going on, guys?

And thank you so much for getting this far.

You're doing a great job and I can guess that you will, if not already, see meaningful results in

this story.

All I want to talk about a situation where we have these two variables, A and B, and each of these

variables has some value within.

All right.

And for some reason, we have to swap between these two values.

So, for example, at the beginning, we have some box A with a value of ten and a box B with a value

of twenty.

And what we need to do is just to exchange the values within these boxes.

So we at first we had a value of 10 in box A and a value of 20 in box B.

Then after the exchange, there will be a value of 20 in Box A and the value of Tamlin Box B, just

as we can see it in these demonstration.

And basically, you can think of this situation of swapping between the values, the content of two

different boxes as just two boxes with this, some pairs of shoes.

One box has Manchus and the other box has woman's shoes.

So, for example, in box A, we have 10 man shoes, and in box B, we have 20 woman shoes.

But it turns out that box say that should contain woman shoes, basically contains men's shoes.

And that's why we need to replace all the shoes from box, say, with all the shoes from Box B..

Right.

So what would be the trivial way they are to you would solve these kind of task?

You can't just simply take and pour what is in one boxing through the second box and vice versa simultaneously.

Because in this case, there will be just a mix of all the shoes in every box.

And that's not what we want.

What we want is probably to get another box and call these box temp and these box will be used to assist

in these six changing process.

So first of all, we'll take the value of box A, which is 10 and just put it inside of box temp venerable,

take the value of 20, all the shoes from Box B and put them inside of box A.

And finally, we will take all the shoes, all the value itself of 10 from box temp and put these value

inside of box B.

And now the exchange and process between these two boxes, A and B, we can say that it's complete.

So basically you can see that the value of ten, which was previously in box A, is now at Box B and

the value of twenty, which was at box B, is now at box A four.

All right.

Very well, guys.

That's was kind of rough explanation using a real life situation.

And now what I want us to do is to be more close to the programming world.

I want us to write a simple code, a simple program that will use these swap thing in our programming

language so that you will be able to take your skills even one step further.

So I hope this topic is clear for you and that you are ready to move onto the next video for a swap

in your programming language.

I'll see you there.

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