All language subtitles for 13. Print Sum of Values Divisible by 3 OR 5 - Trivial & Optimized Solutions - Quest

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?

I hope you are good and in this exercise, this exercise actually is going to be very similar to the

previous one.

We are going to write an official program that receives a noun from the user.

And what this program is going to do is to calculate and print the sum of all the numbers from one up

to.

OK, that can be divided by three or divided by five.

OK, so previously we had a little bit different program.

It was instead of these or we used and OK, so all the numbers that could be divided by three and by

five and now it's just enough for us if a given number can be divided by three or by five.

And if that's the case, we simply take it and use it inside of our sum as part of the sum and then

print the final sound to the screen.

So if, let's say we received NUM equals to you, I don't know a hundred like previously, then we know

that one, two, three, four, five, six and so on, right up to a hundred.

Then in this case we will take three and also we will take five and also we will take six and all the

numbers that can be divided either by three or by five.

OK, so we will take them and add them to our final some awesome.

And what I want you to notice is that once again here we will do these program, will try this program

in two ways.

The first way will be the trivial option.

OK, so it will be there will be a trivial option and also there will be an efficient option.

OK, so think about two solutions for this exercise.

Try to make some conclusions out of the first one.

OK, of the previous exercise, when we talked about the solution, the optimal solution and the difference

between the optimal and the optimized solution versus the trivial one, and try to come up with two

ideas here.

The first idea should be less trivial, pretty much the same as previously.

And there will be also an optimized solution that you should take into account.

So, yeah, this is it for this video.

Guys, thank you so much for watching.

And let's go solve this exercise together.

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