You are viewing a single comment's thread. Return to all comments →
Here's my java solution:
public static long lights(int n) {
BigInteger ans=(BigInteger.valueOf(2).pow(n).subtract(BigInteger.valueOf(1))).mod(BigInteger.TEN.pow(5)); return ans.longValue(); }
Seems like cookies are disabled on this browser, please enable them to open this website
Diwali Lights
You are viewing a single comment's thread. Return to all comments →
Here's my java solution:
public static long lights(int n) {