MCPcopy Create free account
hub / github.com/neetcode-gh/leetcode / createDegrees

Method createDegrees

java/0269-alien-dictionary.java:58–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 }
57
58 private void createDegrees() {
59 for (char c : this.adjList.keySet()) {
60 this.degrees.put(c, this.adjList.get(c).size());
61 }
62 }
63
64 private List<Character> topologicalSort() {
65 // take zero degrees first into a queue

Callers 1

alienOrderMethod · 0.95

Calls 3

putMethod · 0.45
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected