|
@@ -35,6 +35,7 @@
|
35
|
35
|
|
36
|
36
|
## Example 1
|
37
|
37
|
* Sample Script
|
|
38
|
+
|
38
|
39
|
```
|
39
|
40
|
// : Given
|
40
|
41
|
Integer[] array = new Integer[]{1,1,1,23,23,56,57,58};
|
|
@@ -48,13 +49,17 @@
|
48
|
49
|
```
|
49
|
50
|
|
50
|
51
|
* Sample Output
|
|
52
|
+
|
51
|
53
|
```
|
52
|
54
|
[23,23,56,57,58]
|
53
|
55
|
```
|
54
|
56
|
|
|
57
|
+
|
|
58
|
+
|
55
|
59
|
|
56
|
60
|
## Example 2
|
57
|
61
|
* Sample Script
|
|
62
|
+
|
58
|
63
|
```
|
59
|
64
|
// : Given
|
60
|
65
|
Integer[] array = new Integer[]{1,1,1,23,23,56,57,58};
|
|
@@ -68,13 +73,17 @@
|
68
|
73
|
```
|
69
|
74
|
|
70
|
75
|
* Sample Output
|
|
76
|
+
|
71
|
77
|
```
|
72
|
78
|
[1,1,1,23,23]
|
73
|
79
|
```
|
74
|
80
|
|
|
81
|
+
|
|
82
|
+
|
75
|
83
|
|
76
|
84
|
## Example 3
|
77
|
85
|
* Sample Script
|
|
86
|
+
|
78
|
87
|
```
|
79
|
88
|
// : Given
|
80
|
89
|
Integer[] array = new Integer[]{0, 0, 0, 1, 1, 2, 3, 3, 3, 4, 4, 5, 5, 5, 5};
|
|
@@ -88,6 +97,7 @@
|
88
|
97
|
```
|
89
|
98
|
|
90
|
99
|
* Sample Output
|
|
100
|
+
|
91
|
101
|
```
|
92
|
102
|
[1, 1, 2, 4, 4, 5, 5, 5, 5]
|
93
|
103
|
```
|
|
@@ -115,6 +125,7 @@
|
115
|
125
|
|
116
|
126
|
## Example 1
|
117
|
127
|
* Sample Script
|
|
128
|
+
|
118
|
129
|
```
|
119
|
130
|
// : Given
|
120
|
131
|
Integer[] array = new Integer[]{1,1,1,23,23,56,57,58};
|
|
@@ -127,7 +138,10 @@
|
127
|
138
|
System.out.println(Arrays.toString(actual));
|
128
|
139
|
```
|
129
|
140
|
|
|
141
|
+
|
|
142
|
+
|
130
|
143
|
* Sample Output
|
|
144
|
+
|
131
|
145
|
```
|
132
|
146
|
[]
|
133
|
147
|
```
|
|
@@ -137,6 +151,7 @@
|
137
|
151
|
|
138
|
152
|
## Example 2
|
139
|
153
|
* Sample Script
|
|
154
|
+
|
140
|
155
|
```
|
141
|
156
|
// : Given
|
142
|
157
|
Integer[] array = new Integer[]{0, 0, 0, 1, 1, 2, 3, 3, 3, 4, 4, 5, 5, 5, 5};
|
|
@@ -149,7 +164,10 @@
|
149
|
164
|
System.out.println(Arrays.toString(actual));
|
150
|
165
|
```
|
151
|
166
|
|
|
167
|
+
|
|
168
|
+
|
152
|
169
|
* Sample Output
|
|
170
|
+
|
153
|
171
|
```
|
154
|
172
|
[2]
|
155
|
173
|
```
|
|
@@ -158,6 +176,7 @@
|
158
|
176
|
|
159
|
177
|
## Example 3
|
160
|
178
|
* Sample Script
|
|
179
|
+
|
161
|
180
|
```
|
162
|
181
|
// : Given
|
163
|
182
|
Integer[] array = new Integer[]{0, 0, 0, 1, 1, 2, 3, 3, 3, 4, 4, 5, 5, 5, 5};
|
|
@@ -170,7 +189,10 @@
|
170
|
189
|
System.out.println(Arrays.toString(actual));
|
171
|
190
|
```
|
172
|
191
|
|
|
192
|
+
|
|
193
|
+
|
173
|
194
|
* Sample Output
|
|
195
|
+
|
174
|
196
|
```
|
175
|
197
|
[1,1,2,4,4]
|
176
|
198
|
```
|
|
@@ -189,6 +211,7 @@
|
189
|
211
|
|
190
|
212
|
## Example 1
|
191
|
213
|
* Sample Script
|
|
214
|
+
|
192
|
215
|
```
|
193
|
216
|
// : Given
|
194
|
217
|
Integer[] array = new Integer[]{0, 0, 0, 1, 1, 2, 3, 3, 3, 4, 4, 5, 5, 5, 5};
|
|
@@ -204,7 +227,10 @@
|
204
|
227
|
System.out.println(Arrays.toString(actual));
|
205
|
228
|
```
|
206
|
229
|
|
|
230
|
+
|
|
231
|
+
|
207
|
232
|
* Sample Output
|
|
233
|
+
|
208
|
234
|
```
|
209
|
235
|
[1,1,2,4,4]
|
210
|
236
|
```
|
|
@@ -212,6 +238,7 @@
|
212
|
238
|
|
213
|
239
|
## Example 2
|
214
|
240
|
* Sample Script
|
|
241
|
+
|
215
|
242
|
```
|
216
|
243
|
// : Given
|
217
|
244
|
Integer[] array = new Integer[]{1,1,1,23,23,56,57,58};
|
|
@@ -227,7 +254,10 @@
|
227
|
254
|
System.out.println(Arrays.toString(actual));
|
228
|
255
|
```
|
229
|
256
|
|
|
257
|
+
|
|
258
|
+
|
230
|
259
|
* Sample Output
|
|
260
|
+
|
231
|
261
|
```
|
232
|
262
|
[23,23,56,57,58]
|
233
|
263
|
```
|