first round was coding round : 1. One string rotaion of other 2. Nearest largest and smallest prime value of given input. interview questions:What is difference between reference variable and pointer ?
Gyanendra Tiwari
1y
public class Main
{
//Find nearest large and small prime number
public static void main(String[] args) {
int start=6,dest=17;
int largest=Integer.MIN_VALUE;
int smallest=Integer.MAX_VALUE;
if(dest<2...read more
Gyanendra Tiwari
1y
public static boolean rotation(String s1,String s2){ if(s1.length()!=s2.length()){ return false; } Queue<Character> q1=new LinkedList<>(); for(int i=0;i<s1.length();i++){ q1.add(s1.charAt(i)); } Queue...read more
Help your peers!
Add answer anonymously...
Popular interview questions of Intern
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app