@@ -0,0 +1,612 @@
+/**%0A * %0A */%0Apackage algorithms.implementation;%0A%0Aimport java.util.Scanner;%0A%0A/**%0A * Challenge: https://www.hackerrank.com/challenges/strange-code%0A * %0A * @author Sudharsanan Muralidharan%0A */%0Apublic class StrangeCode %7B%0A  public static void main(String%5B%5D args) %7B%0A    Scanner in = new Scanner(System.in);%0A    long t = in.nextLong();%0A    long sum = 0, result = 0;%0A    int i = 0;%0A%0A    while (true) %7B%0A      sum += 3 * (Math.pow(2, i));%0A      if(sum %3E t) %7B%0A        break;%0A      %7D%0A      result = sum;%0A      i++;%0A    %7D%0A    %0A    System.out.println((((sum - result) - (t - result)) %25 (sum-result)) + 1);%0A    in.close();%0A  %7D%0A%7D%0A

Add solution for StrangeCounter