All language subtitles for 9. Printing1ToN and NTo1 - 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
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,990 --> 00:00:11,400 Welcome back, ladies, ladies and gentlemen, to this amazing exercise in our recursive functions and 2 00:00:11,400 --> 00:00:21,690 now what we are going to do is basically what are we going to do is to write a recursive recursive function. 3 00:00:23,130 --> 00:00:32,280 That's basically what he's going to do, is that it's right, rather recursive function that will receive 4 00:00:32,610 --> 00:00:36,120 some no say in. 5 00:00:36,360 --> 00:00:36,900 All right. 6 00:00:37,800 --> 00:00:46,380 And this function is going to receive some number and and what it will do is just to print this function, 7 00:00:46,890 --> 00:01:00,390 will print all the numbers from one from one up from one four one up to this and up to end. 8 00:01:01,200 --> 00:01:05,200 OK, so that's basically all these function will have to do. 9 00:01:05,550 --> 00:01:14,370 So for example, for example, if we know the function receives, I don't know for them in this case. 10 00:01:14,370 --> 00:01:16,970 OK, so let's say input use four. 11 00:01:18,000 --> 00:01:23,490 And in this case, what's going to be printed to the screen is just something like this. 12 00:01:23,490 --> 00:01:25,430 One, two, three, four. 13 00:01:26,100 --> 00:01:30,000 OK, seems to be pretty, pretty easy. 14 00:01:30,450 --> 00:01:40,860 But does it I mean, is it really easy or basically you have to think about it more in depth because 15 00:01:41,580 --> 00:01:46,980 you probably know that you could do so simply by running some for a loop. 16 00:01:47,190 --> 00:01:54,060 And to use like for I equals to one as long as I is less than or equal to this and and just print the 17 00:01:54,060 --> 00:01:54,480 result. 18 00:01:54,520 --> 00:01:58,500 So basically you could go with just these solutions. 19 00:01:58,530 --> 00:02:00,250 Let's say that's the body of the function. 20 00:02:00,570 --> 00:02:08,940 So for let's say I equals to one as long as I is less than or equal to and I plus plus and then basically 21 00:02:09,210 --> 00:02:15,280 to print half just percentage and specify here I write. 22 00:02:15,640 --> 00:02:19,760 So that's basically the most trivial way to solve this exercise. 23 00:02:19,770 --> 00:02:27,090 But of course that's not the case because we are using here a recursive function in not an iterative 24 00:02:27,090 --> 00:02:29,500 approach with using these for a loop. 25 00:02:30,090 --> 00:02:31,970 So think about the solution. 26 00:02:31,980 --> 00:02:39,030 Think about where you're going to place the print line and where you were going also to do the recursive 27 00:02:39,030 --> 00:02:39,480 call. 28 00:02:39,480 --> 00:02:44,370 And how will you also specify the stopping or basically the base condition. 29 00:02:45,150 --> 00:02:46,390 So good luck, guys. 30 00:02:46,410 --> 00:02:50,370 And once you're done, I will see you in the Solutions video. 3050

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