Problem database last updated: June 20, 2025

PPocket Gems logo

Pocket Gems Coding Interview Questions

12 problems · 1 Easy, 9 Medium, 2 Hard · Ranked #124 of 458

Difficulty breakdown

1 Easy

8% · avg 23%

9 Medium

75% · avg 59%

2 Hard

17% · avg 18%

Top topics

array
58.3%
hash-table
58.3%2.6x
sorting
41.7%2.9x
string
41.7%1.5x
heap-priority-queue
25%4.1x
divide-and-conquer
16.7%4x

Interview profile

Based on 12 reported problems, Pocket Gems interviews are in line with industry averages - 17% Hard vs 18% overall. The majority (75%) of questions are Medium difficulty, which is typical for companies that want to see solid fundamentals without excessive trick questions.

Compared to the industry average, Pocket Gems puts unusual emphasis on bucket-sort (16.7% of problems, 21.5x the industry average), string-matching (16.7% of problems, 19.1x the industry average), quickselect (16.7% of problems, 15.8x the industry average). If you're short on time, these are the categories to double down on.

The most common topics are array (58.3%), hash-table (58.3%), sorting (41.7%), string (41.7%). Problems below are sorted by frequency, the ones at the top are asked most often.

All 12 problems

Kth Largest Element in an Array

Solve

Given an integer array nums and an integer k, return the kth largest element in the array.

MediumVery Likely
arraydivide-and-conquersorting

Shortest Palindrome

Solve

You are given a string s. You can convert s to a palindrome by adding characters in front of it.

HardVery Likely
stringrolling-hashstring-matching

Find the Index of the First Occurrence in a String

Solve

Given two strings needle and haystack, return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.

EasyVery Likely
two-pointersstringstring-matching

Sort Colors

Solve

Given an array nums with n objects colored red, white, or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order...

MediumVery Likely
arraytwo-pointerssorting

Insert Delete GetRandom O(1)

Solve

Implement the RandomizedSet class:

MediumVery Likely
arrayhash-tablemath

Top K Frequent Elements

Solve

Given an integer array nums and an integer k, return the k most frequent elements. You may return the answer in any order.

MediumVery Likely
arrayhash-tabledivide-and-conquer

Top K Frequent Words

Solve

Given an array of strings words and an integer k, return the k most frequent strings.

MediumVery Likely
arrayhash-tablestring

Word Break

Solve

Given a string s and a dictionary of strings wordDict, return true if s can be segmented into a space-separated sequence of one or more dictionary words.

MediumVery Likely
arrayhash-tablestring

Longest Repeating Character Replacement

Solve

You are given a string s and an integer k. You can choose any character of the string and change it to any other uppercase English character. You can perform th...

MediumVery Likely
hash-tablestringsliding-window

Clone Graph

Solve

Given a reference of a node in a connected undirected graph.

MediumVery Likely
hash-tabledepth-first-searchbreadth-first-search

Non-negative Integers without Consecutive Ones

Solve

Given a positive integer n, return the number of the integers in the range [0, n] whose binary representations do not contain consecutive ones.

HardVery Likely
dynamic-programming

Find All Duplicates in an Array

Solve

Given an integer array nums of length n where all the integers of nums are in the range [1, n] and each integer appears at most twice, return an array of all th...

MediumVery Likely
arrayhash-tablesorting

How often are these problems asked?

Frequency scores are based on crowdsourced interview reports. A higher score means the problem has been reported more often in recent Pocket Gems interviews.

Very Likely

75-100%

Likely

50-74%

Sometimes

25-49%

Rare

0-24%

Preparing for your Pocket Gems coding interview

Pocket Gems interviews focus heavily on array, hash-table, sorting problems. If you're short on time, these are the categories to prioritize. The problems on this page are sorted by frequency, so start from the top and work your way down.

Beyond solving problems, practice explaining your approach. Pocket Gems interviewers care about your thought process - how you break down a problem, consider edge cases, and evaluate tradeoffs between solutions. A clean O(n) solution you can explain clearly beats an O(log n) solution you can't articulate.

Looking for more companies? Browse all 458 companies in our directory, or sharpen your fundamentals with our free data structure visualizers and AI-powered DSA tutor.

Frequently Asked Questions

What coding problems does Pocket Gems ask in interviews?add

Pocket Gems has been reported to ask 12 distinct coding problems. The most common topics are array, hash-table, sorting. 1 are Easy difficulty, 9 are Medium, and 2 are Hard. Problems are sorted by frequency - the ones at the top are asked most often.

How hard are Pocket Gems coding interviews?add

Based on 12 reported problems, Pocket Gems interviews are in line with industry averages - 17% Hard vs 18% overall. 75% of questions are Medium difficulty. Focus on the high-frequency Medium problems first, then work through the Hard ones.

How should I prepare for a Pocket Gems coding interview?add

Start with the highest-frequency problems listed on this page. Focus on the core topics: array, hash-table, sorting. Practice solving them under time pressure and explaining your approach out loud. Mock interviews with AI can simulate the real experience.

Other companies to explore

Ready to ace your Pocket Gems interview?

Simulate a real Pocket Gems coding interview with an AI interviewer. Get a scorecard with specific feedback on your problem-solving, code quality, and communication.

Simulate a Pocket Gems interview with AIarrow_forward