1 00:00:02,090 --> 00:00:02,780 Hi, everyone. 2 00:00:02,810 --> 00:00:06,689 So in this video, what we will do, we will store all the subsequent of string. 3 00:00:06,920 --> 00:00:11,190 So in the previous video we write the code for printing all the subsequence. 4 00:00:11,750 --> 00:00:14,300 So we were printing, but in this video we want to store. 5 00:00:15,530 --> 00:00:18,020 So what we will do, we will modify our previous code. 6 00:00:18,560 --> 00:00:19,510 So let's modify. 7 00:00:20,900 --> 00:00:22,280 So let's remove this function. 8 00:00:25,570 --> 00:00:32,140 So we have only one function, and instead of printing, instead of printing the subsequent says, we 9 00:00:32,140 --> 00:00:32,800 will store it. 10 00:00:33,310 --> 00:00:34,100 So frustrating. 11 00:00:34,120 --> 00:00:34,750 What do you do? 12 00:00:39,240 --> 00:00:40,110 So frustrating. 13 00:00:40,140 --> 00:00:43,310 What do you do instead of printing it, sparser, Victor? 14 00:00:44,490 --> 00:00:45,960 So let's create one vector here. 15 00:00:48,320 --> 00:00:49,340 Vector of string. 16 00:00:51,530 --> 00:00:54,230 We and we will pass director. 17 00:00:58,120 --> 00:00:59,710 So we will pass the vector here. 18 00:00:59,740 --> 00:01:04,900 This is vector of integers, vector of string. 19 00:01:07,610 --> 00:01:15,890 We and this we will get updated, so instead of printing here, what we will do will not push back. 20 00:01:19,630 --> 00:01:20,290 Output. 21 00:01:22,360 --> 00:01:29,110 So we are not bending the story, so this we will get updated by this function and let's print all the 22 00:01:29,110 --> 00:01:30,070 subsequence is here. 23 00:01:31,700 --> 00:01:34,470 So I called zero, i.e., less than we thought. 24 00:01:34,510 --> 00:01:42,110 Sighs So Vytautas will be the number of subsequence C++ and what will do? 25 00:01:43,610 --> 00:01:45,320 You will write Kotva of a. 26 00:01:48,760 --> 00:01:58,180 Simple, so if the input is basically A.B.C., if the input is ABC, ABC, then Vatterott size will 27 00:01:58,180 --> 00:02:02,040 be it because of the subsequent tests will be true to the poetry, is it? 28 00:02:03,130 --> 00:02:05,140 And we are printing all this subsequent years. 29 00:02:05,350 --> 00:02:09,699 So we are just storing instead of printing, we are just storing all this up sequences. 30 00:02:09,940 --> 00:02:11,560 But there is one problem with our code. 31 00:02:12,070 --> 00:02:15,420 So we are printing this vector inside the main function. 32 00:02:15,430 --> 00:02:17,350 So we need to pass the vector Bio-Reference. 33 00:02:19,190 --> 00:02:20,960 So let's pass Director Bio-Reference. 34 00:02:23,410 --> 00:02:25,270 And I think another function will work. 35 00:02:29,760 --> 00:02:32,600 OK, so what is the problem in Subsequence? 36 00:02:35,430 --> 00:02:38,580 So since we are using vectors, so we need to include the vector. 37 00:02:44,870 --> 00:02:51,260 And we forgot to pass Victor in that equation gone, so the dedication also. 38 00:02:54,760 --> 00:03:00,750 So the input is ABC and these are all subsequent subsequence, so basically our function is working, 39 00:03:00,970 --> 00:03:03,740 so we are now able to store all our subsequence. 40 00:03:04,510 --> 00:03:05,930 So this is from this video. 41 00:03:05,950 --> 00:03:07,150 I will see you in the next one.