Very worst experience
I have given an interview with Perfios for the Angular developer position
the interviewer asked three problem questions
1. sort two array
function concatArray(arr) {
let result = [];
let output = [];
result = arr.slice(arr.length/2);
let firstArr = arr.slice(0,arr.length - result.length);
for(let i=0; i< firstArr.length; i++ ) {
output.push(firstArr[i]);
output.push(result[i]);
}
return output
}
2. Question is sort array
var a = [1,3,5], b = [6,3,4,7,8]
var concatArr = [...a ,...b];
function sortArray(concatArr) {
for(let i=0;i concatArr[j+i]){
var temp = concatArr[j];
concatArr[j] = concatArr[j+i];
concatArr[j+i] = temp;
}
}
}
return concatArr
} I provided bubble sort within 3 minutes and he asked me to optimize the solution and I provided a solution with verbal communication
and 3 questions is a very bad question meaning he searched on Google and he wanted me to answer as expected what he has searched on google after this experience I felt the interviewer was not capable of understanding the logic and algorithm for the time complexity of programming (As per my understanding interviewer should ask such question where he also capable to answer the same question which they asked)