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.