bit manipulation
1.find decimal to binary without using any data structure. import java.io.*; import java.util.*; class GFG { static String fun(int a) { if(a==0) { return "0"; } String st=""; while(a>0) { String temp= (a & 1)==1 ? "1": "0"; st=temp + st...

























Comments
Post a Comment