|
@@ -31,6 +31,29 @@
|
31
|
31
|
|
32
|
32
|
|
33
|
33
|
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
34
|
57
|
<br><br><br><br>
|
35
|
58
|
## `String getFirstElement(String[] array)`
|
36
|
59
|
* **Description**
|
|
@@ -113,6 +136,22 @@
|
113
|
136
|
|
114
|
137
|
|
115
|
138
|
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
116
|
155
|
<br><br><br><br>
|
117
|
156
|
## `String getSecondElement(String[] array)`
|
118
|
157
|
* **Description**
|
|
@@ -163,9 +202,6 @@
|
163
|
202
|
```
|
164
|
203
|
|
165
|
204
|
|
166
|
|
-
|
167
|
|
-
|
168
|
|
-
|
169
|
205
|
### Example 3
|
170
|
206
|
* Sample Script
|
171
|
207
|
|
|
@@ -212,6 +248,14 @@
|
212
|
248
|
|
213
|
249
|
|
214
|
250
|
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
|
215
|
259
|
<br><br><br><br>
|
216
|
260
|
## `String getLastElement(String[] array)`
|
217
|
261
|
* **Description**
|
|
@@ -295,6 +339,32 @@
|
295
|
339
|
|
296
|
340
|
|
297
|
341
|
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
298
|
368
|
<br><br><br><br>
|
299
|
369
|
## ## `String getSecondToLastElement(String[] array)`
|
300
|
370
|
* **Description**
|
|
@@ -383,6 +453,24 @@
|
383
|
453
|
|
384
|
454
|
|
385
|
455
|
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
|
386
|
474
|
<br><br><br><br>
|
387
|
475
|
## `boolean contains(String[] array, String value)`
|
388
|
476
|
* **Description**
|
|
@@ -448,6 +536,36 @@
|
448
|
536
|
|
449
|
537
|
|
450
|
538
|
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
|
451
|
569
|
<br><br><br><br>
|
452
|
570
|
## `String[] reverse(String[] array)`
|
453
|
571
|
* **Description**
|
|
@@ -550,6 +668,12 @@
|
550
|
668
|
|
551
|
669
|
|
552
|
670
|
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
|
553
|
677
|
<br><br><br><br>
|
554
|
678
|
## `boolean isPalindromic(String[] array)`
|
555
|
679
|
* **Description**
|
|
@@ -647,6 +771,17 @@
|
647
|
771
|
|
648
|
772
|
|
649
|
773
|
|
|
774
|
+
|
|
775
|
+
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
|
650
|
785
|
<br><br><br><br>
|
651
|
786
|
## `boolean isPangramic(String[] array)`
|
652
|
787
|
* **Description**
|
|
@@ -695,7 +830,25 @@
|
695
|
830
|
```
|
696
|
831
|
true
|
697
|
832
|
```
|
698
|
|
-
|
|
833
|
+
|
|
834
|
+
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
|
|
846
|
+
|
|
847
|
+
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
|
|
851
|
+
|
699
|
852
|
|
700
|
853
|
|
701
|
854
|
|
|
@@ -818,14 +971,6 @@
|
818
|
971
|
|
819
|
972
|
|
820
|
973
|
|
821
|
|
-
|
822
|
|
-
|
823
|
|
-
|
824
|
|
-
|
825
|
|
-
|
826
|
|
-
|
827
|
|
-
|
828
|
|
-
|
829
|
974
|
<br><br><br><br>
|
830
|
975
|
## `String[] removeConsecutiveDuplicates(String[] array, String value)`
|
831
|
976
|
* **Description**
|
|
@@ -920,6 +1065,24 @@
|
920
|
1065
|
|
921
|
1066
|
|
922
|
1067
|
|
|
1068
|
+
|
|
1069
|
+
|
|
1070
|
+
|
|
1071
|
+
|
|
1072
|
+
|
|
1073
|
+
|
|
1074
|
+
|
|
1075
|
+
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
|
|
1080
|
+
|
|
1081
|
+
|
|
1082
|
+
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
|
923
|
1086
|
<br><br><br><br>
|
924
|
1087
|
## `String[] packConsecutiveDuplicates(String[] array)`
|
925
|
1088
|
* **Description**
|
|
@@ -946,12 +1109,6 @@
|
946
|
1109
|
```
|
947
|
1110
|
[aaa, b, cc, aa, d, eee];
|
948
|
1111
|
```
|
949
|
|
-
|
950
|
|
-
|
951
|
|
-
|
952
|
|
-
|
953
|
|
-
|
954
|
|
-
|
955
|
1112
|
|
956
|
1113
|
|
957
|
1114
|
### Example 2
|
|
@@ -974,10 +1131,6 @@
|
974
|
1131
|
```
|
975
|
1132
|
[tt, q, aaa, b, cc, aa, d, eee];
|
976
|
1133
|
```
|
977
|
|
-
|
978
|
|
-
|
979
|
|
-
|
980
|
|
-
|
981
|
1134
|
|
982
|
1135
|
|
983
|
1136
|
### Example 3
|
|
@@ -1046,8 +1199,6 @@
|
1046
|
1199
|
System.out.println(Arrays.toString(actual));
|
1047
|
1200
|
```
|
1048
|
1201
|
|
1049
|
|
-
|
1050
|
|
-
|
1051
|
1202
|
* Sample Output
|
1052
|
1203
|
```
|
1053
|
1204
|
[baa, bab, bba, bba, bba, bba, bbb, bbb};
|