Work in HR or Recruiting?
Pocket Gems
www.pocketgems.com San Francisco, CA 50 to 149 Employees
Work in HR? Complete Your Profile

51 interview experiences Back to all Pocket Gems Interview Questions & Reviews

Interview Question for Software Engineer at Pocket Gems:
Feb 22, 2012

Given two arrays of integers, find which number is present in the first array but not present in the second array.


Add Tags [?]

See more for this Pocket Gems Software Engineer Interview

Helpful Question?  
Yes | No
Inappropriate?

Answers & Comments (2)

Sep 28, 2012

by Anonymous:

Make the second array a hash map n insert elements of first array into it.
The element left over is the one not present in second array.

(Given the array size is small)
Helpful Answer?  
Yes | No
Inappropriate?

Oct 24, 2012

by Anonymous:

I would sort the arrays first,
once you got something like this:

[1,1,1,2,3,4]
[1,2,2,5,6,7]

things gotten simple
Helpful Answer?  
Yes | No
Inappropriate?

To comment on this question, Sign In with Facebook or Sign Up

Pocket Gems – Why Work for Us?

At Pocket Gems, We’re Serious About Fun Pocket Gems develops free-to-play mobile games that are ridiculously fun. We were founded in 2009 by Daniel Terry and Harlan Crystal, engineers and gaming industry outsiders, who… Full Overview

Provided by employer [?]

Tags are like keywords that help categorize interview questions that have something in common.