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

Method main

java/Chapter 5/Question5_5/Question.java:22–30  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

20 }
21
22 public static void main(String[] args) {
23 int a = 23432;
24 int b = 512132;
25 System.out.println(a + ": " + AssortedMethods.toFullBinaryString(a));
26 System.out.println(b + ": " + AssortedMethods.toFullBinaryString(b));
27 int nbits = bitSwapRequired(a, b);
28 int nbits2 = bitSwapRequired2(a, b);
29 System.out.println("Required number of bits: " + nbits + " " + nbits2);
30 }
31}

Callers

nothing calls this directly

Calls 3

toFullBinaryStringMethod · 0.95
bitSwapRequiredMethod · 0.95
bitSwapRequired2Method · 0.95

Tested by

no test coverage detected