Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added The Trie Data Structure #46

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Parallel fix to fix in trie.java
Fixing of changes cused by CheckStyle fix in trie.java
ICEBERG98 authored Oct 21, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 75bee805b48e67e89f5c00df065729e83d266cae
4 changes: 2 additions & 2 deletions src/test/java/com/github/pedrovgs/trie/TrieTest.java
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ public void setUp() {
s.add("dolor");
s.add("sit");
s.add("amet");
trie root = new trie();
Trie root = new Trie();
for (int i = 0; i < s.size(); i++) {
root.insertIntoTrie(root, s.get(i));
}
@@ -34,7 +34,7 @@ public void setUp() {
@Test public void shouldReturnTrueIfStringIsFound1() {
String s = "Kashish Kashisk Lorem ipsum dolor dolo sit si amrt amet";
String[] arr = s.split(" ");
trie root = new trie();
Trie root = new Trie();
for (int i = 0; i < arr.length; i++) {
root.insertIntoTrie(root, arr[i]);
}