All language subtitles for 20. Efficient Calculation Example - 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,470 --> 00:00:01,800 What is going on, guys? 2 00:00:01,820 --> 00:00:09,470 And welcome to another video in our amazing program, of course, and as always, my name is what this 3 00:00:09,470 --> 00:00:14,110 is Alphatech And we are talking about what are we talking about? 4 00:00:14,120 --> 00:00:20,690 We are talking about a program that receives an integer and they think the jury's called icks. 5 00:00:20,790 --> 00:00:27,590 OK, nothing complicated, though, but so far we know how to receive an integer. 6 00:00:27,890 --> 00:00:36,560 But now what we have to do is to make this program calculate and print what you print, calculate and 7 00:00:36,560 --> 00:00:45,980 print X in a power of two, X in a power of four, X in a power of six and X in the power of eight. 8 00:00:46,380 --> 00:00:48,980 OK, so we simply have to get some number. 9 00:00:48,990 --> 00:00:57,500 For example, let's say three, OK, and then we know that three in the power of two is just nine and 10 00:00:57,500 --> 00:01:05,240 three in the power of four will be probably nine multiplied by nine or three, multiplied by three, 11 00:01:05,240 --> 00:01:09,140 multiplied by three and once again multiplied by three. 12 00:01:09,500 --> 00:01:13,700 Which give us which should give us about eighty one, if I'm not mistaken. 13 00:01:14,330 --> 00:01:20,690 So that's basically what we have to do, this exercise just to print these results to the screen. 14 00:01:21,050 --> 00:01:24,890 But there is a catch, a little catch in these six are science. 15 00:01:25,190 --> 00:01:31,640 And basically what it is, it's simply that the calculation should be done efficiently. 16 00:01:32,030 --> 00:01:43,040 So we know that probably if we apply some mathematical operations, some good operations, maybe we 17 00:01:43,040 --> 00:01:49,060 can save some computation time and make it much more efficient. 18 00:01:49,220 --> 00:01:56,780 Then let's say we have here two approaches, that one approach will be much slower while the other will 19 00:01:56,780 --> 00:01:58,820 be much more optimized. 20 00:01:59,690 --> 00:02:03,020 So take a couple of moments to think about it. 21 00:02:03,980 --> 00:02:10,580 Probably come with also both of the solutions, the trivial solution and also the optimized solution, 22 00:02:10,760 --> 00:02:16,810 which will or should make these program, these calculation more efficient. 23 00:02:17,330 --> 00:02:22,910 So give it a try and I'll see in the Solutions video. 2608

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