Role:- Software Developer Intern
Hiring Process:-
Assignment:-
Rick and Morty API Usage:- https://rick-morty-react-sanil.vercel.app/
Got a call from HR for Technical Interview 1.
Technical Interview 1 :-
Started with an introduction about me.
Asked about my projects and programming languages along with current tech stacks.
Coding Question(DSA):-
My Answer:-
var res = new Array();
function solve(n) {
for(var i = 1 ; i <= n ; i++) {
if(i%15 == 0) {
// console.log("FizzBuzz");
res.push('FizzBuzz');
}
else if(i%3 == 0) {
// console.log("Fizz");
res.push('Fizz');
}
else if(i%5 == 0) {
// console.log("Buzz");
res.push('Buzz');
}
else {
// console.log(i);
res.push(i);
}
}
return res;
}
solve(20);function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function Tutor() {
for (let i = 1; i < 2 ; i++) {
await sleep(5000);
console.log(res);
}
}
Tutor()Leetcode Questions:-
Behavioural Questions:-
Result:- Qualified for Round 2
Experience:- Positive
Difficulty:- Medium
Technical Interview 2 :-
Started with an introduction about previous round.
Coding Question(OOP):-
My Answer:-
const student1 = { firstname: 'sunil', secondname: 'kumar' }
const student2 = { firstname: 'abc', secondname: 'xyz', age: '21' }
const student3 = { age: '30' }
// const student4 = student3;
const student4 = JSON.parse(JSON.stringify(student3));
console.log(student3);
console.log(student4);
// Object.keys(myObject).forEach((item) => {
// if(typeof myObject[item] == "age" && myObject[item] === '30') {
// myObject[item] = 10
// }
// })
// const newstudent4 = JSON.parse(JSON.stringify(student4));
student4.age = '45';
console.log(student3);
console.log(student4);
// const c = Object.entries(student2).reduce((c, [k, v]) => Object.assign(c, student1[k] ? {} : { [k]: v }), {});
// console.log(c);Leetcode Questions:- (Conceptually)
Result:- Not selected
Experience:- Average
Difficulty:- Medium