Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,600 --> 00:00:07,830
What is going on, guys, and in this video, we are going to practice in nice recreation function that
2
00:00:07,830 --> 00:00:14,580
all it's going to do is basically it's going to receive the values.
3
00:00:15,060 --> 00:00:19,200
The first value that this function is going to receive is an integer.
4
00:00:20,160 --> 00:00:27,900
That will be called total, the second value will also be an integer that should be called number one.
5
00:00:28,740 --> 00:00:35,610
And the last parameter that we are going to receive will be also of an integer type, and it will be
6
00:00:35,610 --> 00:00:37,830
called numb to all right.
7
00:00:37,830 --> 00:00:40,560
So now pay attention to what the function should do.
8
00:00:40,830 --> 00:00:41,170
OK.
9
00:00:41,190 --> 00:00:43,350
That's the function that you are going to develop.
10
00:00:43,710 --> 00:00:47,370
And then hopefully we are also going to solve it together.
11
00:00:48,000 --> 00:00:54,660
So once you created the signature of the function, you received three values total number one in them
12
00:00:54,660 --> 00:00:58,770
to all three of them are often integer type, but.
13
00:00:59,910 --> 00:01:03,810
That's just for the explanation of this video, of course, you can mix them.
14
00:01:03,960 --> 00:01:06,060
But that's what you are required to do.
15
00:01:06,360 --> 00:01:13,710
Three parameters of integer type and what the function should do is that it should print a sequence
16
00:01:13,710 --> 00:01:21,330
of total number ones values and then a sequence of total now 2's values.
17
00:01:21,690 --> 00:01:25,050
OK, so you received three parameters.
18
00:01:25,320 --> 00:01:26,760
Total number one in them.
19
00:01:26,760 --> 00:01:27,060
Two.
20
00:01:27,930 --> 00:01:33,210
And now if, for example, you received a total of three, OK, total equals two three.
21
00:01:33,210 --> 00:01:37,140
Number one equals two two and no two equals two four.
22
00:01:37,680 --> 00:01:45,600
Then what you should print is a sequence, a sequence of length total, which is a Flink three off first
23
00:01:45,600 --> 00:01:45,900
of all.
24
00:01:45,930 --> 00:01:49,020
Number one value number one value in number one value.
25
00:01:49,950 --> 00:01:52,500
And then to print a sequence right afterwards.
26
00:01:52,890 --> 00:01:59,040
A sequence of the values of number two, which in this case is four and the length of the sequence should
27
00:01:59,040 --> 00:01:59,820
be total.
28
00:02:00,360 --> 00:02:06,600
OK, so a total is the sequence of number one values that should be printed one after the other.
29
00:02:07,020 --> 00:02:13,410
Once you are done printing the sequence of length total that these function received, then you print
30
00:02:13,410 --> 00:02:15,210
a sequence of numbers.
31
00:02:15,720 --> 00:02:22,680
OK, so another example is that if you get a total equal to two and no one equals two three in number
32
00:02:22,680 --> 00:02:23,670
two equals to five.
33
00:02:23,700 --> 00:02:30,090
Then we print a sequence of length two of the value one, which is three three, and then we print a
34
00:02:30,090 --> 00:02:35,550
sequence of NAM two, which is five of length two again, which will be five five.
35
00:02:35,850 --> 00:02:41,940
So the final thing that you expect to see on the screen is three three five five, as in this example.
36
00:02:42,600 --> 00:02:44,910
All right, so great.
37
00:02:45,300 --> 00:02:53,160
And now you are going to start thinking about the solution and start practicing and hopefully solve
38
00:02:53,160 --> 00:02:54,720
it correctly on your own.
39
00:02:55,380 --> 00:02:56,760
So take some time.
40
00:02:56,760 --> 00:03:00,540
Think about a solution, and I will see you in the solutions video.
41
00:03:01,170 --> 00:03:01,760
Enjoy.
4020
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.