Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:01,260 --> 00:00:04,420
So that's the final upgrade for this exercise.
2
00:00:04,440 --> 00:00:08,340
OK, that will make sure that you understood everything correctly.
3
00:00:08,880 --> 00:00:16,170
So now we will write a program that should rotate not to the left, but rather to their right.
4
00:00:17,230 --> 00:00:18,130
And given away.
5
00:00:19,240 --> 00:00:24,710
OK, so we will need to rotate right by one element, by an element.
6
00:00:24,730 --> 00:00:25,070
OK.
7
00:00:25,090 --> 00:00:31,270
First of all, implement the one element, then you will be able to implement the elements and you should
8
00:00:31,270 --> 00:00:33,010
rotate to the right.
9
00:00:33,580 --> 00:00:39,850
So write a program that should rotate, write a given array by M positions.
10
00:00:40,570 --> 00:00:46,820
So once you have the previous solution, maybe it's you can start writing from scratch.
11
00:00:46,840 --> 00:00:49,360
That's also a good idea to practice it even further.
12
00:00:49,750 --> 00:00:57,760
But if you are pretty sure about everything that you have created so you can leave it as is and simply
13
00:00:57,760 --> 00:01:03,700
modify the structure from this exercise to support the rotating right.
14
00:01:05,050 --> 00:01:10,090
So let me just explain to you guys what will happen when we rotate, right?
15
00:01:10,570 --> 00:01:11,110
OK.
16
00:01:11,230 --> 00:01:16,330
Basically, if we rotate one, rotate right by one.
17
00:01:16,660 --> 00:01:22,090
This is the expected results of three will go to here and all of them will move to the right.
18
00:01:22,540 --> 00:01:23,710
So final result.
19
00:01:24,100 --> 00:01:27,190
OK, should look like this five, four seven.
20
00:01:27,190 --> 00:01:28,750
And here we get three.
21
00:01:29,530 --> 00:01:33,850
That's the usage of rotate by one to the right.
22
00:01:36,710 --> 00:01:42,800
And you need to rotated by end, so think about what should be modified in this part of code.
23
00:01:43,100 --> 00:01:46,280
And once you're done, check out the solutions.
2166
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.