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

11
LINES

< > BotCompany Repo | #1008648 // StringTree1

JavaX fragment (include)

sclass StringTree1 {
  bool leaf;
  new HashMap<S, StringTree1> children;

  StringTree1 getOrAdd(S s) {
    StringTree1 t = children.get(s);
    if (t == null)
      children.put(s, t = new StringTree1);
    ret t;
  }
}

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: 457 / 1095
Referenced in: [show references]