MCPcopy Create free account
hub / github.com/MolinDeng/Princeton-algs4 / main

Method main

LabEnv/10Lab/CircularSuffixArray.java:97–104  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

95
96 // unit testing (required)
97 public static void main(String[] args) {
98 while (!StdIn.isEmpty()) {
99 String s = StdIn.readString();
100 CircularSuffixArray circularSuffixArray = new CircularSuffixArray(s);
101 for (int i = 0; i < circularSuffixArray.length(); i++)
102 StdOut.println(circularSuffixArray.index(i));
103 }
104 }
105}

Callers

nothing calls this directly

Calls 3

lengthMethod · 0.95
indexMethod · 0.95
isEmptyMethod · 0.45

Tested by

no test coverage detected