1
00:00:01,190 --> 00:00:02,720
Hey, guys, what's up?

2
00:00:02,900 --> 00:00:10,080
So today we are swallowing one when dusting problem so that proneness treatment is given the most given

3
00:00:10,220 --> 00:00:10,670
numbers.

4
00:00:11,780 --> 00:00:12,530
Slap them.

5
00:00:16,120 --> 00:00:21,580
For example, let's say doing a massage is five and B's seven.

6
00:00:22,480 --> 00:00:28,660
So by stripping, I mean, is the new video fair is seven and B is five.

7
00:00:29,830 --> 00:00:33,250
OK, so the venues of A&amp;E are slapped with each other.

8
00:00:34,270 --> 00:00:35,800
So how against all this problem?

9
00:00:37,660 --> 00:00:46,680
So what we can use is, first of all, we were doing the most and and B, we will take input from the

10
00:00:46,690 --> 00:00:46,900
user.

11
00:00:47,010 --> 00:00:48,400
What other do they lose?

12
00:00:49,960 --> 00:00:50,240
OK.

13
00:00:50,650 --> 00:00:51,420
Then what do we do?

14
00:00:51,460 --> 00:00:57,460
We will take one temporary variable and dump families.

15
00:00:57,480 --> 00:00:58,270
Atambayev anyway.

16
00:00:59,200 --> 00:01:01,150
And it will store live in the OWFI.

17
00:01:02,650 --> 00:01:10,400
So let's see, is five and B is seven.

18
00:01:10,920 --> 00:01:12,180
So I am what I am doing.

19
00:01:12,240 --> 00:01:17,610
I am making a temporary variable and this temporary variable will also hold the five.

20
00:01:17,790 --> 00:01:19,050
I cooperate disvalue here.

21
00:01:20,880 --> 00:01:23,370
OK, then what I will do, I will right.

22
00:01:23,670 --> 00:01:27,030
It was be so cooperative and will be in to it.

23
00:01:27,660 --> 00:01:29,970
So here it will become seven.

24
00:01:31,410 --> 00:01:32,970
OK, we have to copy the value.

25
00:01:33,510 --> 00:01:36,930
So the new video fee is seven.

26
00:01:37,500 --> 00:01:38,220
Then what do we do.

27
00:01:38,250 --> 00:01:41,170
We will write be it was temp.

28
00:01:42,540 --> 00:01:44,730
So what is the new value of B new value.

29
00:01:44,820 --> 00:01:48,560
B is five and Dukan.

30
00:01:48,660 --> 00:01:54,770
And finally, you can see yourself the new radio phase seven and the new valve BS five.

31
00:01:55,290 --> 00:01:56,870
So the numbers are slabbed.

32
00:01:57,090 --> 00:02:00,900
Initially it was five and B was seven.

33
00:02:02,040 --> 00:02:02,360
OK.

34
00:02:02,700 --> 00:02:06,330
So with the help of these three lines, I can slap two numbers.

35
00:02:09,500 --> 00:02:09,870
OK.

36
00:02:12,260 --> 00:02:13,700
Let's take one more example.

37
00:02:15,650 --> 00:02:26,160
Suppose the value of is to add the value of Beastie so badly off a stool, then lay off.

38
00:02:26,240 --> 00:02:27,050
B is T.

39
00:02:30,390 --> 00:02:31,200
Now what I'm doing.

40
00:02:31,370 --> 00:02:33,350
I am creating a temporary variable.

41
00:02:34,910 --> 00:02:36,620
So this is my time.

42
00:02:36,620 --> 00:02:37,400
Very valuable.

43
00:02:39,080 --> 00:02:41,900
And this is holding the value of a.

44
00:02:42,170 --> 00:02:45,440
This is basically copy the value of a temp.

45
00:02:46,250 --> 00:02:47,490
Copy the value of it.

46
00:02:47,630 --> 00:02:48,380
And don't temp.

47
00:02:49,310 --> 00:02:50,240
So too is here.

48
00:02:51,500 --> 00:02:55,580
Now that we are doing copy the value of B in to it.

49
00:02:55,910 --> 00:02:58,170
So copy the value of be in to A.

50
00:02:58,820 --> 00:03:00,660
So then you and your phase three.

51
00:03:01,820 --> 00:03:02,740
Now what our doing.

52
00:03:03,280 --> 00:03:06,860
Copy the value of temp in to be complementary of temp.

53
00:03:06,920 --> 00:03:08,480
And to be so new.

54
00:03:08,480 --> 00:03:09,780
Any of these two.

55
00:03:10,250 --> 00:03:13,750
So finally it becomes T and B becomes two.

56
00:03:13,790 --> 00:03:15,230
So then the Mozart swept.

57
00:03:16,930 --> 00:03:17,260
OK.

58
00:03:17,590 --> 00:03:18,580
So let's try it called.

59
00:03:24,730 --> 00:03:25,440
Let's name it.

60
00:03:25,540 --> 00:03:26,590
So Abdool numbers.

61
00:03:33,850 --> 00:03:34,580
NBPA.

62
00:03:36,760 --> 00:03:37,690
So what do we have to do?

63
00:03:53,380 --> 00:03:54,780
OK, so first of all, what do we do?

64
00:03:54,850 --> 00:03:56,560
We will take Goonan marriage and but.

65
00:03:58,750 --> 00:04:04,660
So let's say I do it on my side, A and B, let us take input from the user.

66
00:04:05,890 --> 00:04:13,680
So first of all, let us sprint the car into a low fare and we'll see you out before slapping.

67
00:04:14,890 --> 00:04:23,410
So before slapping the value of A and B are so C out it was.

68
00:04:29,520 --> 00:04:35,610
And similarly, Soucy out a push, a

69
00:04:38,420 --> 00:04:40,260
hard line and see out.

70
00:04:43,340 --> 00:04:44,100
We put.

71
00:04:51,160 --> 00:04:53,150
So this is the case before swapping.

72
00:04:53,440 --> 00:04:56,710
Now they will swap for swapping, but they do.

73
00:04:56,800 --> 00:05:02,220
We will take a very, very temp, which is initially a copy of a new offering to be then.

74
00:05:02,470 --> 00:05:06,040
But I will do I will copy the value of B into A.

75
00:05:06,430 --> 00:05:09,400
And then copies of any of them.

76
00:05:09,570 --> 00:05:11,590
And to be OK.

77
00:05:12,160 --> 00:05:14,560
Now let us print these values again.

78
00:05:14,740 --> 00:05:15,550
After swapping.

79
00:05:25,360 --> 00:05:26,940
So after slapping.

80
00:05:27,520 --> 00:05:30,610
Now, this is all that we have to do to solve this problem.

81
00:05:31,240 --> 00:05:32,590
So let us test our program.

82
00:05:35,310 --> 00:05:39,570
So let's say the value of A and B are five and seven.

83
00:05:40,950 --> 00:05:46,720
So before setting the radio phase five, after snapping the value of a seven, before stepping the value

84
00:05:46,720 --> 00:05:52,170
of these life, after setting the value of these SODI, before setting the value will be seven.

85
00:05:52,350 --> 00:05:54,030
And after us, I think it becomes five.

86
00:05:54,690 --> 00:05:54,960
OK.

87
00:05:55,420 --> 00:05:57,160
So the values are getting swept.

88
00:05:59,070 --> 00:06:06,040
Nowadays, one more way in which we can do a swapping, and that is with the help of Zord, Rick Lazio,

89
00:06:06,040 --> 00:06:06,990
Peter Zord.

90
00:06:08,010 --> 00:06:09,050
OK, so what we will do.

91
00:06:11,610 --> 00:06:17,870
I suppose the value of is five and the value of these seven.

92
00:06:18,900 --> 00:06:22,730
I will write a quiz is ought to be OK.

93
00:06:23,190 --> 00:06:24,300
So a quiz.

94
00:06:24,750 --> 00:06:27,600
The current value of phase five and these seven.

95
00:06:27,630 --> 00:06:28,860
So this is the new video feed.

96
00:06:29,580 --> 00:06:33,110
Then I will write be equals is or be.

97
00:06:34,020 --> 00:06:34,960
So be it was.

98
00:06:35,070 --> 00:06:38,090
What is the value of the value of phase five or seven.

99
00:06:39,030 --> 00:06:42,900
Then take Zschau Revd B and R this B seven.

100
00:06:43,620 --> 00:06:44,220
So seven.

101
00:06:44,750 --> 00:06:47,410
Now seven a.m. and I will cancel out each other BS.

102
00:06:48,020 --> 00:06:49,710
Five gained right.

103
00:06:49,890 --> 00:06:53,810
Equals A zone B so a quiz.

104
00:06:53,880 --> 00:06:57,240
What is the value of the value of eight five zero seven.

105
00:06:57,690 --> 00:06:59,190
So five is on seven.

106
00:06:59,820 --> 00:07:01,530
Then I have to take Zah would be.

107
00:07:01,530 --> 00:07:03,150
And what is B B's five.

108
00:07:03,240 --> 00:07:03,810
So five.

109
00:07:04,470 --> 00:07:05,190
Five and five.

110
00:07:05,210 --> 00:07:06,330
But against each other.

111
00:07:06,750 --> 00:07:07,590
The new yellowface.

112
00:07:07,680 --> 00:07:08,070
Seven.

113
00:07:08,580 --> 00:07:13,320
So you can see here the value of B is now five.

114
00:07:14,130 --> 00:07:19,120
So value of B is five and the value of A is now seven.

115
00:07:19,160 --> 00:07:21,300
So the value of it is now seven.

116
00:07:21,690 --> 00:07:23,530
So values are getting slammed.

117
00:07:24,560 --> 00:07:24,820
OK.

118
00:07:25,410 --> 00:07:27,170
So the values are getting swept.

119
00:07:31,740 --> 00:07:32,850
So let's come and out.

120
00:07:36,030 --> 00:07:38,530
So what we can do is a quiz.

121
00:07:39,450 --> 00:07:53,450
Is order B B GWAS is odd is or B and again eight was A czar B.

122
00:07:54,600 --> 00:07:54,910
OK,

123
00:07:57,980 --> 00:08:01,380
let's say the value of and B are five and seven.

124
00:08:03,150 --> 00:08:05,640
So you can see the values out of getting slammed.

125
00:08:05,790 --> 00:08:06,840
Initially it was safe.

126
00:08:06,900 --> 00:08:08,130
Now is seven.

127
00:08:09,010 --> 00:08:10,140
Initially B was seven.

128
00:08:10,570 --> 00:08:12,060
After I bring it becomes five.

129
00:08:12,980 --> 00:08:14,670
So the vendors are getting stabbed.

130
00:08:16,530 --> 00:08:19,190
Led to the radio phase one and the value of bees, too.

131
00:08:21,080 --> 00:08:23,000
So, again, the values are getting swept.

132
00:08:23,430 --> 00:08:23,730
OK.

133
00:08:25,620 --> 00:08:30,570
Now what C++ does, this trapping operation is very common.

134
00:08:30,990 --> 00:08:33,400
We have an inverted function to slap two numbers.

135
00:08:34,500 --> 00:08:39,570
The function is slap a call maybe.

136
00:08:41,220 --> 00:08:41,630
No.

137
00:08:41,910 --> 00:08:44,450
Now the values of A and B will be slabbed.

138
00:08:44,700 --> 00:08:47,370
OK, so this is an N word function slap.

139
00:08:53,220 --> 00:08:56,150
Let's say a five and B's seven.

140
00:08:58,050 --> 00:09:00,040
So the values are getting slapped.

141
00:09:00,210 --> 00:09:01,770
Five, seven.

142
00:09:02,340 --> 00:09:03,990
OK, one more time.

143
00:09:05,670 --> 00:09:08,240
Answer the value of a one and these two.

144
00:09:09,090 --> 00:09:10,860
So they may lose out of getting seven.

145
00:09:11,890 --> 00:09:13,500
OK, so this.

146
00:09:13,950 --> 00:09:16,980
So where did the team method first with the help of M variable.

147
00:09:17,400 --> 00:09:20,040
Second with the help of bitwise operator tzar.

148
00:09:20,730 --> 00:09:23,740
And third, we have in both function to heping.

149
00:09:24,240 --> 00:09:25,680
So I will always use this.

150
00:09:25,830 --> 00:09:30,050
You can use annual Dubeau to or you can also use this material.

151
00:09:30,150 --> 00:09:32,430
Always use this sarap a comma B.

152
00:09:33,900 --> 00:09:34,120
OK.

153
00:09:36,830 --> 00:09:38,180
So this is all for this video.

154
00:09:38,570 --> 00:09:39,080
Thank you.
