Travelopia interview experience Real time questions & tips from candidates to crack your interview

Junior Developer

Travelopia
upvote
share-icon
3 rounds | 10 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 7 months
Topics: DSA(Java), SQL, OOPS, Web Dev, JS, NodeJS
Tip
Tip

Tip 1 : Initially started with DSA in took me 3 to 4 months as I already had put some time on DSA consistency would be a key here and once you are confident after doing this much you should also start leetcode contest or Coding Ninjas Weekly contest.
Tip 2 : As I was working in a service based company so I started with Web Dev to upskill myself , so I started with Web Dev.
Tip 3 : I began with MERN stack and create 2 or 3 good projects and on to this try to make real world projects with real world users will be an ultimate thing like some order placing app , social media app make sure to deploy them also,

Application process
Where: Other
Eligibility: No just try to have a score greater than 50 for any project submission on the platform although this is also not necessary as once you called in by any company then everything will be decided by your performance in the interview.
Resume Tip
Resume tip

Tip 1 : Add Relevant Projects with their deployed links (Rather then their github links). (It will leave good impression on the interview )
Tip 2 : Keep your resume short if you are doing leetcode then also mention your respective platforms ID's.
Tip 3 : Do not put false things on resume.

Interview rounds

01
Round
Easy
Assignment
Duration90 minutes
Interview date27 May 2022
Coding problem1

1. Furthest Building You Can Reach

Moderate
10m average time
90% success
0/80
Asked in companies
Goldman SachsAmazonMorgan Stanley

Ninja is in the mood for a walk over the city, but being a ninja he prefers jumping over building roofs instead of walking through the streets.

The height of the buildings in his city can be represented through an array ‘HEIGHTS’ where ‘HEIGHT[i]’ is the height of the ith building. Ninja starts his journey from the 1st building and in one step can only travel to the roof of the next building.

While traveling from the ‘i’th to (i+1)th building:

1. If the ith building has a height greater than or equal to the next i.e (i+1)th building then he simply jumps to the next building.

2. Otherwise he uses either {‘HEIGHTS[i+1] -‘HEIGHTS[i]} bricks or just 1 ladder to climb up to the next building.

Having a limited number of bricks say ‘BRICKS’ and a limited number of ladders say ‘LADDERS’ in his Ninja pocket, he wants to know which is the farthest building he can travel up to if he uses the bricks and ladders optimally.

As Ninja is weak in mathematics so he asks for your help, can you help Ninja to find the maximum index of the building he can reach up to(1 based indexing)?

Try solving now
02
Round
Medium
Video Call
Duration60 minutes
Interview date4 Jun 2022
Coding problem4

This round was taken by an independent developer through Bar Raiser Platform on Goggle Doc .
First 15 minutes he asked me a problem on basic DSA just to see how I think.
Then for the rest nearly 50 minutes on Javascript concepts.

1. Sum of Digits

Easy
15m average time
85% success
0/40
Asked in companies
ProtiumMorgan StanleySamsung

Ninja is given an integer ‘N’. One day Ninja decides to do the sum of all digits and replace the ‘N’ with the sum of digits until it becomes less than 10. Ninja wants to find what will be the value of ‘N’ after applying this operation.

Help Ninja in finding out this value.

Try solving now

2. Technical Questions

He asked me questions on Temporal Dead Zone , currying and use cases of currying and callbacks 

Problem approach

For each question I tried to create some context for the question like in first TDZ (Temporal Dead Zone question) like how did this concept of TDZ came into picture so I told the interview that I want to first explain what is TDZ first then I will explain how this happens for that I began explaining different types variables in JS then I started explaining Hoisting then how Hositing behaves differently in case of different variables then at last I gace an example of TDZ also.
This way for each question I did the same way.

Note : Just one suggestion while doing any question speak out loud also while doing Output based snippet questions because that keeps interview in the discussion and he gets idea about our thought process.

3. System Design Questions

He asked questions on Promises asked me to write a dummy Promise .Then he asked me to write a function that return a promise the condition is like : "There is a network call and the call could be successfull or fail okay , if it fails then retry the promise till K times and if it still fails then return the promise with a reject and if it succeeds them simply return the resolve ".

Problem approach

So in this question first I created a dummy code that returns a promise . Then I filled the function.

//Code that I presented there 
const retPromise = async function (networkCall,k){ //k is the maximum try count
return new Promise( async (resolve,reject) {
for(let itr=0;itr let error; 
try{
let result = await networkCalll();
resolve(result);
}
catch(err){
error = err;
}
}
reject(err);
})
}

4. Output Question

 He asked me write output for a snippet he  showed me  : 

The code was :const promise = new Promise((res) => res(2));promise  .then((v) => {    console.log(v);    return v * 2;  })  .then((v) => {    console.log(v);    return v * 2;  })  .finally((v) => {    console.log(v);    return v * 2;  })  .then((v) => {    console.log(v);  });

Problem approach

I just went through each line and told how I thought about the function as there we have a concept of chaining of promises.
In this case my output was little bit wrong as I didn't print the last output line.
Then the interviewer clarified me and made my concept clear.

03
Round
Medium
Video Call
Duration120 minutes
Interview date7 Jun 2022
Coding problem5

Two Interviews from Travelopia Team came to take this round.

1. Technical Question

Can you identify few of the concepts we are using in this peace of code and how its behaving 

.// let name1 ={ //   firstName : "Pankaj",//   lastName : "Bhatt"// }// let name2 ={//   firstName : "Rajan",//   lastName : "Guna"// }

// let printFullName = function (town, state) {//   console.log(this.firstName + " " + this.lastName + " from " + town + " , " + state)// }

// //// printFullName.call(name1, "Bangalore", "Karnataka");

// //// printFullName.apply(name2, ["Bangalore", "Karnataka"]);

// //// let printMyName = printFullName.bind(name1, "Bangalore", "Karnataka");

// printMyName();

Problem approach

I started from line number 1 till last and I explained each and every concept than I explained difference between call,apply and bind and use cases.

2. System Design Questions

He asked me to handle an API call and put thee results into front end element.

Then he asked me to rewite this use Async-await and also asked difference between promises and async and await also.

Problem approach

let url = "https://reqres.in/api/users?page=2";

let callAPI = fetch(url);

callAPI.then((response)=>{
return response.json();
}).then((result)=>{
console.log("Final res "+result);
}).catch((err)=>{
console.log(" Error occured "+err);
}); 
 

3. Technical Question

/* console.log(1 +  "2" + "2"); 

// 122console.log(1 +  +"2" + "2"); 

//"32"console.log(1 +  -"1" + "2"); 

 //0+"2"  =>"02"console.log(+"1" +  "1" + "2");  

//"112"console.log( "A" - "B" + "2");   

//"-12"console.log( "A" - "B" + 2); 

// 1 *//* const [a, ...b, c] = [1, 2, 3, 4, 5];console.log(a, b, c); */

Problem approach

I tried to explain each line what I thought and then added output against each line later I saw my 2 answers were wrong.
So the interviewer corrected me.

4. Technical Question

var myFun = {  name: "vpn",  func: function() {      var self = this;      console.log("outer func:  this.name = " + this.name);  //outer func:  this.name = vpn      console.log("outer func:  self.name = " + self.name);  //      //outer func:  this.name = vpn      (function() {          console.log("inner func:  this.name = " + this.name); // inner func:  this.name = undefined          console.log("inner func:  self.name = " + self.name); //inner func:  self.name = vpn      }());        }};myFun.func();

Problem approach

I discussed how This behaves in different context to let them understand that I know how this works then I started writing the output.

5. Technical Question

const [a, ...b, c] = [1, 2, 3, 4, 5];console.log(a, b, c);

Problem approach

I explained spread operator for this question then I told that this is syntax error as c will be undefined and this list id=s defined with const so it can't be undefined so I explained him the logic.

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
4 rounds | 8 problems
Interviewed by Amazon
8518 views
0 comments
0 upvotes
Analytics Consultant
3 rounds | 10 problems
Interviewed by ZS
907 views
0 comments
0 upvotes
company logo
SDE - Intern
1 rounds | 3 problems
Interviewed by Amazon
3319 views
0 comments
0 upvotes
company logo
SDE - 2
4 rounds | 6 problems
Interviewed by Expedia Group
2580 views
0 comments
0 upvotes