All language subtitles for 3. Total Characters in a Sequence - Question

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

Welcome, ladies and gentlemen, to another very, very interesting exercise in our recursion section.

So in this video, what we are going to do is basically to write some function.

OK, this is basically these function will have to be implemented using some recursive concept.

And all these function will have to do is just to calculate the number of appearances of a given character

in a sequence.

And you are going to read a sequence of different characters and you don't know in advance how many

characters will be in this particular sequence, because that's something that we want to give the user

to decide.

So basically saying the user will insert different characters, OK, up until he inserts these character

of dollar in, once the user inserts the last character, which will be probably our stopping condition,

once the user does that, then we are going to return the number of appearances, the number of occurrences

of a given character that these function is going to receive and the function is going to calculate

and to return.

Finally, what is the number of times that these given character has occurred in the sequence that the

user has inserted?

So, for example, let's take a look at these examples.

So example.

So here we can see that a given character see OK is passed to the function and then the user specifies

these little nice sequence of A, B, C, A, C and A dollar, and then the function in a recursive

manner will simply return to since we have here two characters which are a C, OK, and that's the character

we are comparing with.

Awesome.

So I hope that the instructions are clear to you and you understand why do you have to do and now basically

take a few minutes and try to think of the solution, try to come up with a good idea, with a good

with a good strategy to how you can solve it.

I think we've already done some similar exercises that may come handy here.

So take your time, try to think of the solution in once you're done.

Let's proceed with our solution.

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