Skip to content

Commit 2e9f3fa

Browse files
committed
chore(docs): update docstring
1 parent 34d2e39 commit 2e9f3fa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/com/thealgorithms/datastructures/trees/SplayTree.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ private int minValue(Node root) {
249249
/**
250250
* Perform an in-order traversal of the SplayTree.
251251
*
252-
* @return A vector containing the keys in in-order traversal order.
252+
* @return A list containing the keys in in-order traversal order.
253253
*/
254254
public List<Integer> inOrder() {
255255
List<Integer> result = new LinkedList<>();
@@ -261,7 +261,7 @@ public List<Integer> inOrder() {
261261
* Recursive function for in-order traversal.
262262
*
263263
* @param root The root of the subtree to traverse.
264-
* @param result The vector to store the traversal result.
264+
* @param result The list to store the traversal result.
265265
*/
266266
private void inOrderRec(Node root, List<Integer> result) {
267267
if (root != null) {
@@ -274,7 +274,7 @@ private void inOrderRec(Node root, List<Integer> result) {
274274
/**
275275
* Perform a pre-order traversal of the SplayTree.
276276
*
277-
* @return A vector containing the keys in pre-order traversal order.
277+
* @return A list containing the keys in pre-order traversal order.
278278
*/
279279
public List<Integer> preOrder() {
280280
List<Integer> result = new LinkedList<>();
@@ -286,7 +286,7 @@ public List<Integer> preOrder() {
286286
* Recursive function for pre-order traversal.
287287
*
288288
* @param root The root of the subtree to traverse.
289-
* @param result The vector to store the traversal result.
289+
* @param result The list to store the traversal result.
290290
*/
291291
private void preOrderRec(Node root, List<Integer> result) {
292292
if (root != null) {
@@ -299,7 +299,7 @@ private void preOrderRec(Node root, List<Integer> result) {
299299
/**
300300
* Perform a post-order traversal of the SplayTree.
301301
*
302-
* @return A vector containing the keys in post-order traversal order.
302+
* @return A list containing the keys in post-order traversal order.
303303
*/
304304
public List<Integer> postOrder() {
305305
List<Integer> result = new LinkedList<>();
@@ -311,7 +311,7 @@ public List<Integer> postOrder() {
311311
* Recursive function for post-order traversal.
312312
*
313313
* @param root The root of the subtree to traverse.
314-
* @param result The vector to store the traversal result.
314+
* @param result The list to store the traversal result.
315315
*/
316316
private void postOrderRec(Node root, List<Integer> result) {
317317
if (root != null) {

0 commit comments

Comments
 (0)