All language subtitles for 24. Extra Recursion 2 - Print Sequence of char1s and then Sequencex2 of char2s - S.

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
hu Hungarian Download
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

OK, so now let's take a look at the solution and try to figure out what happens here.

And basically, why does it happen this way?

So we know if we want to print a sequence?

Some size of, I don't know, integers or characters or a double value, so it doesn't really matter.

So we are going to use the print operation right?

We are going to print the values to the screen.

Then we are probably going to make some recursive function call.

All right.

Once we do the recursive function call, then basically every time we will reduce the sequence by one

and still keep on printing out right after we are done printing the sequence, the first part of the

sequence, then we move on to printing out the second part of the sequence.

Once we are going back from our recursion, we print the next part of the sequence.

So we, for example, first of all, we print out in this case, let's say B-BBEE.

Then once we are done with the recursive calls, then on our way back where we stopped in the calling

to the function itself, we print the.

And the only difference here, when we use a sequence of, let's say, two times more multiplied by

the startle right, so for example, first of all, we wanted to see we in previous exercise.

I think we solved something like this just with integers.

So BDD, there was no problem.

We simply used the printing operation, then the recursive function called then the printing operation

again.

But now, since we know that the sequence should be two times more, then the answer is very, very

clean and very, very elegant.

We simply use this one, this one, this one.

We simply use two times printing out this second character, so we print out through the screen.

The second character a two times for every time we go back in the recursion, as opposed to printing

just once before we make the recursion function call.

OK, so that's the difference.

If you will run this program right now, you will see that it works exactly as you expect it to.

OK.

And I think that here is nothing so complicated in this solution, so you can try it on your own.

You can run this program and make sure that everything works exactly as you expect.

OK.

So thank you guys for watching.

Keep on practicing, and I'll see you in the next videos.

Bye bye, bye.

Bye Bye.

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