@@ -61,6 +61,8 @@ This page contains the complexities of different algorithms in this repository.
61
61
* ARRAY CLASS IN C++
62
62
* [ MISC ARRAYS] ( #misc-arrays )
63
63
* [ JAGGED ARRAY] ( #jagged-array )
64
+ * [ STRING] ( #string )
65
+ * [ Strings in JAVA] ( #strings-in-java )
64
66
* [ LISTS] ( #lists )
65
67
* SINGLE
66
68
* [ SINGULAR LINKED LIST] ( #singular-linked-list-having-head-and-next )
@@ -99,11 +101,23 @@ This page contains the complexities of different algorithms in this repository.
99
101
* HEAPED PRIORITY QUEUE
100
102
* HASHTABLE
101
103
* TREES
104
+ * BINARY TREE
105
+ * GENERIC TREES
106
+ * THREADED BINARY TREE
107
+ * XOR TREES
108
+ * BINARY SEARCH TREE
109
+ * AVL TREES
110
+ * RED BLACK TREES
111
+ * SPLAY TREES
112
+ * AUGMENTED TREES
113
+ * SCAPEGOAT TREES
114
+ * INTERVAL TREES
115
+ * HEAP TREE
116
+ * GRAPHS
102
117
* HEAPS
103
118
* [ DYNAMIC 1D ARRAY] ( #dynamic-1d-arrays-(CC++) )
104
119
* [ DYNAMIC 2D ARRAY] ( #dynamic-2d-arrays-(CC++) )
105
120
* [ DYNAMIC 3D ARRAY] ( #dynamic-3d-arrays-(CC++) )
106
- * GRAPHS
107
121
* BLOCKCHAIN
108
122
109
123
## ALGORITHMS
@@ -122,7 +136,7 @@ This page contains the complexities of different algorithms in this repository.
122
136
#### :rocket : SORTING
123
137
124
138
SNo. | Algorithm | Order of complexity O(n) | Type of Complexity | Stable/Unstable Sort | In Place Algorithm | Space Complexity
125
- ---- | --------- | ------------------------ | ------------------ | -------------------- | ------------------ | ----------------
139
+ ---- | --------- Data-Structures/STRING/Strings.java | ------------------------ | ------------------ | -------------------- | ------------------ | ----------------
126
140
1 | Bubble Sort | O(n^2) | Quadratic | Stable / Can be Unstable** | :heavy_check_mark : | O(1)
127
141
2 | Selection Sort | O(n^2) | Quadratic | Unstable | :heavy_check_mark : | O(1)
128
142
3 | Insertion Sort | O(n^2) | Quadratic | Stable | :heavy_check_mark : | O(1)
@@ -273,6 +287,22 @@ This page contains the complexities of different algorithms in this repository.
273
287
274
288
##### ARRAY CLASS IN C++
275
289
290
+ ### STRING
291
+
292
+ #### Strings in JAVA
293
+
294
+ SNo. | Methods | Order of complexity O(n) | Type of Complexity
295
+ 1 | char charAt() | O(1) | Constant
296
+ 2 | int indexOf() | O(n) | Linear
297
+ 3 | lastIndexOf() | O(n) | Linear
298
+ 4 | int length() | O(1) | Constant
299
+ 5 | substring() | O(n) | Linear
300
+ 6 | replace() | O(n) | Linear
301
+ 7 | concat(str) | O(n^2) | Quadratic
302
+ 8 | equals(str) | O(n) | Linear
303
+ 9 | toUpperCase() | O(n) | Linear
304
+ 10 | toLowerCase() | O(n) | Linear
305
+
276
306
### LISTS
277
307
278
308
#### SINGLE
0 commit comments