Hi there let's hope you don't research them all in the previous and I'm off to reset did the competitor 2
on comparable interfaces which helped in sorting the immense entry said. 3
All right so now let's go ahead and look at the other that's in research. 4
And we will look at the methods in the navigable set interface which are trees or implements and we 5
know that navigable set extends sockets. 6
OK. 7
So let's go ahead and do that. 8
I'm for this we are going to write a new metric called Reset Ahmadu. 9
In the last demo it was Tresor demo. 10
So now let's call it d'esprit said Ahmadu. 11
Let's go on for this method. 12
So let's go ahead and create an instance of research on that referenced I'd be navigable setting because 13
we want to use some stats from navigable SEC. 14
So it's going to be an amicable set of integers. 15
And let's just use the same numbers which we have used when we discuss navigable set. 16
So first thing that we are going to test is the methods like lower floor ceiling and higher. 17
Let's start with that buckets are the elements now. 18
Code space lower and just said Dot lower. 19
And if you recall the search target was this element and before. 20
Now let's just go ahead and copy this. 21
What are log on methodes 22
or 23
rocks on this. 24
So far lower it is returning Gandhigiri because it is less than someone before. 25
So the search target is 74 what floor it is it are getting 74 because it has less than or equal to someone 26
before the highest the grid system but that is less than or equal to something before unforeseen. 27
It does it or doning seben be for which is the lowest number which is greater than or equal to 74. 28
I'm far higher. 29
It has to be strictly greater than 74. 30
So it does bending. 31
We're just running eighty nine here. 32
OK. 33
Now let's go ahead and try the first our last methods. 34
So this would get done the first Iron 35
last 36
. 37
So that's right. 38
So the hostile Mendez fight on the last element is 89. 39
OK. 40
Now that says go ahead and bring the aliments offset all the elements of second. 41
So here they are. 42
Now let's invoke the descending set method. 43
Descending set method would have done the reverse few of those Socred sing or dance and nuker dance 44
and now we get all set so that of pure year can be negligible set or any off that's super interface's 45
so it can be slaughtered set do what let's just keep who does not have a global set score that does 46
disinterring said Walts go ahead and burn this 47
and run it. 48
So it's going to rain the elements in the reverse order. 49
So that's the descending second straight forward. 50
Now let's try out headset. 51
I'm subsegments. 52
So let's go get a headset. 53
Say SEC dark headset and let's use this version of headset which comes from navigable circuit and who 54
element let's say 74 and in blue zero Nipissing falls for now. 55
Which means that we want to exclude someone before and it seems it's 56
the 57
that school I wouldn't print this. 58
So as you can see it is you're doing five and 23. 59
OK. 60
That meant the ultimate goal 74 so soon before it was excluded. 61
Now he changed it to drew 62
sword or Dun's 5:23 and 3:53. 63
Next we said does this turn set is back by the origin Utterson which means that if we add anything here 64
it gets reflected in the order Nosek and vice versa. 65
So let's go on. 66
I'd only meant to hurt set 67
at 6 and next grand 68
set. 69
So it should have got reflected. 70
As you can see it is it occurred here and set looks also print head circles so 71
that you are 6 iron though it got added in the original set. 72
Also nexta let's just add one more element 73
you'll see we said that it throws an illegal argument exception if it's if it is outside the range. 74
Next I'd fall because the elements hard fight starts from fight but should not throw an exception because 75
we are still within the range because we are talking about headset here on the headset. 76
Anything less than 7 before is fine so that would be the range on 4 is within that. 77
As we are fine with that. 78
But let's say if we added 75 then it will generate run by exception. 79
I know it says a legal argument exception. 80
He is out of range. 81
OK so it's got to be either someone before or less than 74. 82
On any integer below that should be fine. 83
So let's just call this out next. 84
Let's try a subset sort of suspend the set elements here. 85
One more time because four has united and let's say subset 86
on let's get let's get all the elements between 5 and 7. 87
For now let's see. 88
So traipsing 89
in subsetting now. 90
So we have a subset. 91
So let's just go ahead and ired to do this iron. 92
This should also give any legal argument exception because two is not within the range of 5 274. 93
Subset will have the elements between 5 and 7 4 but when we add(2) the are 2 it is outside the range 94
on Soquel. 95
So an illegal argument exception at line Summerbee Since line 76. 96
Yes here it is. 97
So that's what it this. 98
So let's just change this. 99
And let's finally lifts something in the order you know the set should get reflected in the return set 100
so it should get reflected in the subset. 101
So let's go ahead and Bugarach. 102
I'd say set. 103
I had something I wanted three under. 104
Now let's print subset. 105
So you are adding in the original set and with adding a number between 5 174. 106
So it should also reflect an subset because the return set here subset is back by the origin of second 107
. 108
OK so you do this so as you can see. 109
It also includes 5 6 and 23. 110
Earlier when a subset was created here it showed how Heidel only 5 and 6 they actually can do 3 was 111
already there so let's actually add something as undefined. 112
So maybe you go quantify 5 6 1 to 3 unquantified earlier it had only 5 6 and only 3. 113
Now we added 25 and so on we added 1 to 5 in the main set and it got reflected in the subset also. 114
OK so that's about it. 115
I think those are the main metrics and they're also not that frequently used. 116
But if you need it. 117
So we now know how to use them. 118
We know that they exist within these methods. 119
So that's about it. 120
And if there are any few other matters like like last ball first so you can just go ahead and try them 121
out if you're interested. 122
But these are the made matters. 123
Thank you and you can find this code in the resource section. 124
Happy coding. 125
Thank you