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

11
LINES

< > BotCompany Repo | #1008648 // StringTree1

JavaX fragment (include)

1  
sclass StringTree1 {
2  
  bool leaf;
3  
  new HashMap<S, StringTree1> children;
4  
5  
  StringTree1 getOrAdd(S s) {
6  
    StringTree1 t = children.get(s);
7  
    if (t == null)
8  
      children.put(s, t = new StringTree1);
9  
    ret t;
10  
  }
11  
}

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: #1008648
Snippet name: StringTree1
Eternal ID of this version: #1008648/1
Text MD5: cd71d13e738d9cf1ac24bd14909faaec
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-26 19:25:15
Source code size: 231 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 563 / 1221
Referenced in: [show references]