@@ -0,0 +1,440 @@
+package com.sunny.grokkingalgorithms.fasttrack.ctcimedium;%0A%0A/**%0A * Created by sundas on 6/16/2018.%0A */%0Apublic class SwapTwoVariablesWithoutTemp %7B%0A%0A  /**%0A   *%0A   * @param args%0A   */%0A  public static void main(String%5B%5D args) %7B%0A    int a = 5;%0A    int b = 6;%0A    System.out.println(a);%0A    System.out.println(b);%0A    a += b;%0A    b = a - b;%0A    a -= b;%0A    System.out.println(%22swap%22);%0A    System.out.println(a);%0A    System.out.println(b);%0A  %7D%0A%0A%7D%0A

Swap two numbers without using any temp variables. O(1)