Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

13
LINES

< > BotCompany Repo | #1014362 // Test Trie [OK, but class is too wasteful]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (2795L/18K).

1  
!7
2  
3  
!include once #1000859 // Trie
4  
5  
p {
6  
  wordWrapConsole();
7  
  Trie.Builder<S> builder = Trie.builder();
8  
  for (S s : words("hallo hello hallihallo yo"))
9  
    builder.put(s, "");
10  
  Trie<S> trie = builder.build();
11  
  printStruct(trie);
12  
  print(trie);
13  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1014362
Snippet name: Test Trie [OK, but class is too wasteful]
Eternal ID of this version: #1014362/4
Text MD5: 4116313c4634dd371fce102a4e234cd2
Transpilation MD5: 71a34cc37e8110fdd19c24566f8806e1
Author: stefan
Category: javax
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-20 16:13:46
Source code size: 261 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 376 / 914
Version history: 3 change(s)
Referenced in: [show references]