Google Software Developer Mock Interview

Practice 30 Google Software Developer interview questions covering algorithms, system design, and coding challenges.

Question 2 of 30

Here at Google, our developers work with Java quite a bit. Tell me how you find duplicate numbers in an array in Java containing multiple duplicates?

  • How to Answer

  • Example Answer

  • Community Answers

William Swansen
William Swansen

William Swansen has worked in the employment assistance realm since 2007. He is an author, job search strategist, and career advisor who helps individuals worldwide and in various professions to find their ideal careers.

You will find that Java is used with many applications, on many different platforms, and a multitude of languages as well. If you're in software development and haven't learned to program in Java, I suggest you learn it as soon as possible. It is becoming a core technology for web development and development in general. It has many capabilities that other programming tools don't have, and that's why it's been a favorite for many developers and companies such as Google. Everyone in IT has their own way of approaching a complex problem and finding a solution. In this case, we're talking about finding duplicate numbers in an array in Java. Luckily, Java is a go-to for most developers trying to solve this problem. An interviewer might phrase this question differently, but this is the easiest to understand. When you hear the words Sorted or Binary search, they are looking for you to explain what inner and outer loops mean or parsing items inside an array. Be prepared for those questions as well.

Unlock All 30 Google Questions

Prepare with questions that reflect Google's rigorous technical interview process.

Get Started