Java code to check weather the second number is rotated version of the first number without converting it to string or array....frequently asked in interviews..... Follow me @ facebook @linkedIn //*********************************Coded-By : SOMES KUMAR K.*******************************// //*********************************LEARN CODE WITH FUN*************************************// import java.util.Scanner; public class Find_Number_Rotated { int find_count( int a){ int c= 0 ; while (a> 0 ){ c++; a=a/ 10 ; } return c; } public static void main(String[] args) { Find_Number_Rotated no = new Find_Number_Rotated(); boolean xc= false ; Scanner s1 = new Scanner(System. in ); int a= s1.nextInt(); int data = s1.nextInt(); int c = no.find_count(a); int th= 1 ; for ( int i= 0 ;i<c;i++) th*= 10 ; int b=(a*th)+a;...
"Without ability luck is nothing" "Be a name Creator don't be a name bearer" "Never demotivate anybody" are the facts in which my life is going on.....