Skip to content

Commit dc13192

Browse files
committed
fix bugs
1 parent 54a4d01 commit dc13192

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/main/java/com/thealgorithms/others/Trie.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ public static void main(String[] args) {
171171
* No fixed 10-20 word limitation.
172172
*/
173173

174-
String[] words = { "hello", "hell", "hel", "help", "helps", "helping", "helicopter", "car", "career", "dog" };
174+
String[] words = {
175+
"hello", "hell", "hel", "help", "helps", "helping", "helicopter", "car", "career", "dog"
176+
};
175177

176178
// Dynamically insert all words
177179
for (String word : words) {
@@ -195,4 +197,4 @@ public static void main(String[] args) {
195197
System.out.println(word);
196198
}
197199
}
198-
}
200+
}

src/test/java/com/thealgorithms/others/ArrayRotationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ void shouldReturnOriginalArrayWhenRotationIsZero() {
5959

6060
assertArrayEquals(new int[] {7, 8, 9}, values);
6161
}
62-
}
62+
}

0 commit comments

Comments
 (0)