Skip to contentSkip to footer
  • Community
  • Jobs
  • Companies
  • Salaries
  • For Employers
      Notifications

      Loading...

      Elevate your career

      Discover your earning potential, land dream jobs, and share work-life insights anonymously.

      employer cover photo
      employer logo
      employer logo

      Pocket Gems

      Is this your company?

      About
      Reviews
      Pay & benefits
      Jobs
      Interviews
      Interviews
      Related searches: Pocket Gems reviews | Pocket Gems jobs | Pocket Gems salaries | Pocket Gems benefits
      Pocket Gems interviewsPocket Gems Mobile Game Engineer interviewsPocket Gems interview


      Glassdoor

      • About / Press
      • Awards
      • Blog
      • Research
      • Contact Us
      • Guides

      Employers

      • Free Employer Account
      • Employer Center
      • Employers Blog

      Information

      • Help
      • Guidelines
      • Terms of Use
      • Privacy & Ad Choices
      • Do Not Sell Or Share My Information
      • Cookie Consent Tool
      • Security

      Work With Us

      • Advertisers
      • Careers
      Download the App

      • Browse by:
      • Companies
      • Jobs
      • Locations
      • Communities
      • Recent Posts

      Copyright © 2008-2026. Glassdoor LLC. "Glassdoor," "Worklife Pro," "Bowls," and logo are proprietary trademarks of Glassdoor LLC.

      Company Bowl sample

      Want the inside scoop on your own company?

      Check out your Company Bowl for anonymous work chats.

      Bowls

      Get actionable career advice tailored to you by joining more bowls.

      Followed companies

      Stay ahead in opportunities and insider tips by following your dream companies.

      Job searches

      Get personalized job recommendations and updates by starting your searches.

      Mobile Game Engineer Interview

      Jan 18, 2012
      Anonymous Interview Candidate
      San Francisco, CA
      No offer
      Negative experience
      Difficult interview

      Application

      The process took 1 day. I interviewed at Pocket Gems (San Francisco, CA) in Jan 2012

      Interview

      1. How to reverse a string , complexity of the problem in big O notation 2. Binary Tree Lowest Common Ancestor. “The following is a binary tree data structure in which each node is associated with an integer. Each node has a set of ancestors, recursively de?ned as: every node is its own ancestor, and the parent of an ancestor is also an ancestor. Any two nodes have a set of common ances- tors, de?ned as the set intersection of the two ancestor sets. Any two nodes have a lowest common ancestor, de?ned as their common ancestor farthest away from the root. Write in pseudo-code an O(n) function that takes a tree and two integers and returns the integer associated with the lowest common ancestor of the two nodes associated with the two inputs." The interviewer wanted me to write the code class Tree { Node *root; } class Node { Node *left, *right; int value; } int Tree::LCA(int a, int b) { // write code }

      Interview questions [1]

      Question 1

      Preorder traversal code
      1 Answer