Tech IndustryNov 18, 2018
Uberyzuo

Solving Airbnb interview questions in Java?

It seems many questions are easier to implement in Ruby/Python, but not in Java. How did Java developers pass their interviews?

Add a comment
LinkedIn gTBK55 Nov 18, 2018

Try javascript? (Only half trolling)

Microsoft OPaB84rg Nov 18, 2018

Half trolling is script, another half is Java.

Amazon PAxv45 Nov 18, 2018

i used to use Java but this time around i did all my onsite interviews in javascript. it is easier than Java.

Amazon Sde3am Nov 18, 2018

But you did not get into Airbnb or the other top tiers, you are at Amazon

LinkedIn Gill Bates Nov 18, 2018

Savage

Microsoft @S Nutella Nov 18, 2018

Why easier in Python/JavaScript?

Amazon PAxv45 Nov 18, 2018

it is just less verbose, for example you can just use an object instead of a map. you dont have to deal with type definitions.

Uber yzuo OP Nov 18, 2018

E.g. parse a csv file and print data in json. Hardly to implement it in 30 mins unless you are very familiar with file parsing and json library.

Apple akj1 Nov 18, 2018

I do all of my white board interviews in python because it’s basically one step removed from writing in plain english. If you want to see the advantages, check out any leetcode solution or geeksforgeeks algorithm implementation in java vs python

Microsoft OPaB84rg Nov 18, 2018

Imho you don't have to write so much code in interviews. Usually solutions are short. So it doesn't really matter that the language is more verbose. You would save 1 extra minute MAX in the whole interview probably. If that's a deal breaker I have bad news for you. Personally I passed Apple, Facebook, Microsoft interviews and used Java. Didn't have any discomfort. I failed Google however I am 100% sure it had nothing to do with Java. Better use language which you know very well.

Uber vbn Nov 18, 2018

This topic is for Airbnb. Their coding questions are different.

Gusto 104702759 Jan 4, 2019

I wrote close to 100 lines for each of my on-site coding rounds at Airbnb (got an offer)

Airbnb Jxjdukskjs Nov 18, 2018

It is true that our candidates consistently have a harder time finishing on time in Java because it is so verbose. If you know a scripting language about as well, I highly recommend you use it instead.

Uber vbn Nov 18, 2018

Have you switched backend to Java?

Airbnb Jxjdukskjs Nov 18, 2018

We use both Ruby and Java on the backend. I chose a team that lets me avoid the Java bits.