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

af Afrikaans
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
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
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian Download
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,480 --> 00:00:01,760 What is going on, guys? 2 00:00:01,980 --> 00:00:08,490 I hope you are good and in this exercise, this exercise actually is going to be very similar to the 3 00:00:08,490 --> 00:00:09,320 previous one. 4 00:00:09,720 --> 00:00:13,700 We are going to write an official program that receives a noun from the user. 5 00:00:14,130 --> 00:00:21,420 And what this program is going to do is to calculate and print the sum of all the numbers from one up 6 00:00:21,420 --> 00:00:21,600 to. 7 00:00:22,260 --> 00:00:27,480 OK, that can be divided by three or divided by five. 8 00:00:27,550 --> 00:00:31,610 OK, so previously we had a little bit different program. 9 00:00:31,630 --> 00:00:40,050 It was instead of these or we used and OK, so all the numbers that could be divided by three and by 10 00:00:40,050 --> 00:00:46,040 five and now it's just enough for us if a given number can be divided by three or by five. 11 00:00:46,410 --> 00:00:53,850 And if that's the case, we simply take it and use it inside of our sum as part of the sum and then 12 00:00:53,850 --> 00:00:55,980 print the final sound to the screen. 13 00:00:56,760 --> 00:01:04,560 So if, let's say we received NUM equals to you, I don't know a hundred like previously, then we know 14 00:01:04,560 --> 00:01:11,990 that one, two, three, four, five, six and so on, right up to a hundred. 15 00:01:12,720 --> 00:01:20,250 Then in this case we will take three and also we will take five and also we will take six and all the 16 00:01:20,250 --> 00:01:25,290 numbers that can be divided either by three or by five. 17 00:01:25,500 --> 00:01:31,770 OK, so we will take them and add them to our final some awesome. 18 00:01:32,820 --> 00:01:39,630 And what I want you to notice is that once again here we will do these program, will try this program 19 00:01:39,630 --> 00:01:40,490 in two ways. 20 00:01:40,500 --> 00:01:42,890 The first way will be the trivial option. 21 00:01:42,930 --> 00:01:49,050 OK, so it will be there will be a trivial option and also there will be an efficient option. 22 00:01:49,230 --> 00:01:53,070 OK, so think about two solutions for this exercise. 23 00:01:53,310 --> 00:01:56,850 Try to make some conclusions out of the first one. 24 00:01:57,180 --> 00:02:04,380 OK, of the previous exercise, when we talked about the solution, the optimal solution and the difference 25 00:02:04,890 --> 00:02:12,690 between the optimal and the optimized solution versus the trivial one, and try to come up with two 26 00:02:12,690 --> 00:02:13,490 ideas here. 27 00:02:13,500 --> 00:02:17,580 The first idea should be less trivial, pretty much the same as previously. 28 00:02:18,090 --> 00:02:23,740 And there will be also an optimized solution that you should take into account. 29 00:02:24,480 --> 00:02:26,970 So, yeah, this is it for this video. 30 00:02:26,970 --> 00:02:28,910 Guys, thank you so much for watching. 31 00:02:28,920 --> 00:02:32,850 And let's go solve this exercise together. 3164

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