MCPcopy Create free account
hub / github.com/Tiwarishashwat/InterviewCodes / numTilePossibilities

Method numTilePossibilities

LetterTilePossibilities.java:19–25  ·  view source on GitHub ↗
(String tiles)

Source from the content-addressed store, hash-verified

17 return;
18 }
19 public int numTilePossibilities(String tiles) {
20 HashSet<String> set = new HashSet<String>();
21 Boolean visited[] = new Boolean[tiles.length()];
22 Arrays.fill(visited, Boolean.FALSE);
23 backtrack(tiles,"",set, visited);
24 return set.size();
25 }
26}

Callers

nothing calls this directly

Calls 1

backtrackMethod · 0.95

Tested by

no test coverage detected