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

8
LINES

< > BotCompany Repo | #1003402 // isViable - for occtrees

JavaX fragment (include)

static bool isViable(OccTree<E> tree) {
  for (E e : keys(tree.followUp)) {
    if (neq(e.state, "bad")
      && isViable(tree.followUp(e)))
      true;
  }
  ret empty(tree.followUp);
}

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: #1003402
Snippet name: isViable - for occtrees
Eternal ID of this version: #1003402/1
Text MD5: d5f483095455a4425c4de84560c0c0f8
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-06-29 01:18:25
Source code size: 195 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 522 / 474
Referenced in: [show references]