MCPcopy Create free account
hub / github.com/careercup/ctci / main

Method main

java/Chapter 5/Question5_3/Question.java:235–257  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

233 }
234
235 public static void main(String[] args) {
236 for (int i = 0; i < 200; i++) {
237 int p1 = getPrevSlow(i);
238 int p2 = getPrev(i);
239 int p3 = getPrevArith(i);
240
241 int n1 = getNextSlow(i);
242 int n2 = getNext(i);
243 int n3 = getNextArith(i);
244
245 if (p1 != p2 || p2 != p3 || n1 != n2 || n2 != n3) {
246 binPrint(i);
247 binPrint(p1);
248 binPrint(p2);
249 binPrint(p3);
250 binPrint(n1);
251 binPrint(n2);
252 binPrint(n3);
253 System.out.println("");
254 }
255 }
256 System.out.println("Done!");
257 }
258
259}

Callers

nothing calls this directly

Calls 7

getPrevSlowMethod · 0.95
getPrevMethod · 0.95
getPrevArithMethod · 0.95
getNextSlowMethod · 0.95
getNextMethod · 0.95
getNextArithMethod · 0.95
binPrintMethod · 0.95

Tested by

no test coverage detected