We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db131d3 commit ff709e9Copy full SHA for ff709e9
src/main/java/com/thealgorithms/compression/LZ78.java
@@ -54,7 +54,7 @@ public record Token(int index, char nextChar) {
54
* A node in the dictionary trie structure.
55
* Each node represents a phrase and can have child nodes for extended phrases.
56
*/
57
- private static class TrieNode {
+ private static final class TrieNode {
58
Map<Character, TrieNode> children = new HashMap<>();
59
int index = -1; // -1 means not assigned yet
60
}
0 commit comments