The wires in a household lamp cord are typically 3.0 mm apar…

The wires in a household lamp cord are typically 3.0 mm apart center to center and carry equal currents in opposite directions. If the cord carries current to a 100-W light bulb connected across a 120-V potential difference, what force per meter does each wire of the cord exert on the other? Is the force attractive or repulsive?

What is the “Big-Oh” time complexity of the following method…

What is the “Big-Oh” time complexity of the following method?     public static void foo(int n, int sum) {        int i = n;        while (i > 1) {            for (int j = 0; j < n * n; j++) {                sum++;            }            i = i / 2;        }    }