niks
BAN USERForgot to mention the soln I gave ->
public static int[] addToArrayInSecond(int[] first, int[] second){
int f_len = first.length;
int s_len = second.length;
int i=f_len-1,j=second.length -first.length-1;
while(i>=0 && j>=0){
if(first[i] >second[j]){
second[i+j+1]=first[i];
i--;
}else{
second[i+j+1]=second[j];
j--;
}
}
if(j<0){
while(i>=0){
second[i]=first[i];
i--;
}
}
return second;
}
Repkylieblindner, abc at ASAPInfosystemsPvtLtd
Hello, I am Kylie. I am working in a store as Supply chain managers promote the design, development, and implementation ...
Repsos337837, Personnel assistant at Bountiful Harvest Health Food Store
I am a Risten Personnel Assistant . I am responsible for maintaining human resource records of Department employees . I have a ...
Repjohnlevans657, Principal Software Engineer at Ask.com
Hi, I am John, from Taxes USA, I am a dedicated, extremely organized, and highly competent Administrative Specialist seeking a ...
Even my first soln was dat. But the interviewer doubted its feasibility for a large directory structure. And asked me to think of better soln.
- niks March 24, 2012Then I gave a soln for detecting a cycle in a graph . The interviewer was satisfied by the soln.