Skip to content

Commit

Permalink
Update reuse declaration format
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoyun committed Apr 6, 2024
1 parent bf69ba3 commit 293a0f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/seedu/address/commons/util/Trie.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public Trie(String... words) {
}
}

//@@author <a href="https://github.com/eugenp/tutorials">eugenp</a>
//@@author eugenp-reused
//Reused from https://www.baeldung.com/trie-java with minor modifications
/**
* Insert a word into the Trie.
Expand All @@ -39,7 +39,7 @@ public void insert(String word) {
}
//@@author

//@@author <a href="https://github.com/eugenp/tutorials">eugenp</a>
//@@author eugenp-reused
//Reused from https://www.baeldung.com/trie-java with minor modifications
/**
* Delete a word from the Trie.
Expand All @@ -51,7 +51,7 @@ public void delete(String word) {
}
//@@author

//@@author <a href="https://github.com/eugenp/tutorials">eugenp</a>
//@@author eugenp-reused
//Reused from https://www.baeldung.com/trie-java with minor modifications
private boolean delete(TrieNode current, String word, int index) {
if (index == word.length()) {
Expand All @@ -78,7 +78,7 @@ private boolean delete(TrieNode current, String word, int index) {
}
//@@author

//@@author <a href="https://github.com/eugenp/tutorials">eugenp</a>
//@@author eugenp-reused
//Reused from https://www.baeldung.com/trie-java with minor modifications
/**
* Search for a word in the Trie.
Expand Down

0 comments on commit 293a0f4

Please sign in to comment.