Problem database last updated: June 20, 2025

QQualcomm logo

Qualcomm Coding Interview Questions

46 problems · 22 Easy, 20 Medium, 4 Hard · Ranked #44 of 458

Difficulty breakdown

22 Easy

48% · avg 23%

20 Medium

43% · avg 59%

4 Hard

9% · avg 18%

Top topics

array
41.3%
two-pointers
19.6%
string
17.4%
linked-list
17.4%2.4x
math
17.4%
hash-table
15.2%

Interview profile

Based on 46 reported problems, Qualcomm interviews are in line with industry averages - 9% Hard vs 18% overall.

Compared to the industry average, Qualcomm puts unusual emphasis on queue (6.5% of problems, 4.5x the industry average), bit-manipulation (10.9% of problems, 3.2x the industry average), recursion (13% of problems, 2.9x the industry average). If you're short on time, these are the categories to double down on.

The most common topics are array (41.3%), two-pointers (19.6%), string (17.4%), linked-list (17.4%). Problems below are sorted by frequency, the ones at the top are asked most often.

All 46 problems

String Compression III

Solve

Given a string word, compress it using the following algorithm:

MediumVery Likely
string

Reverse Linked List

Solve

Given the head of a singly linked list, reverse the list, and return the reversed list.

EasyVery Likely
linked-listrecursion

LRU Cache

Solve

Design a data structure that follows the constraints of a Least Recently Used (LRU) cache.

MediumLikely
hash-tablelinked-listdesign

Number of Islands

Solve

Given an m x n 2D binary grid grid which represents a map of '1's (land) and '0's (water), return the number of islands.

MediumLikely
arraydepth-first-searchbreadth-first-search

Remove Nth Node From End of List

Solve

Given the head of a linked list, remove the nth node from the end of the list and return its head.

MediumLikely
linked-listtwo-pointers

Reverse Bits

Solve

Reverse bits of a given 32 bits signed integer.

EasyLikely
divide-and-conquerbit-manipulation

Middle of the Linked List

Solve

Given the head of a singly linked list, return the middle node of the linked list.

EasyLikely
linked-listtwo-pointers

Rotate Image

Solve

You are given an n x n 2D matrix representing an image, rotate the image by 90 degrees (clockwise).

MediumLikely
arraymathmatrix

Merge Sorted Array

Solve

You are given two integer arrays nums1 and nums2, sorted in non-decreasing order, and two integers m and n, representing the number of elements in nums1 and num...

EasyLikely
arraytwo-pointerssorting

Number of 1 Bits

Solve

Given a positive integer n, write a function that returns the number of set bits in its binary representation (also known as the Hamming weight).

EasyLikely
divide-and-conquerbit-manipulation

Two Sum

Solve

Given an array of integers nums and an integer target, return the indices of the two numbers that add up to target.

EasyLikely
arrayhash-map

Climbing Stairs

Solve

You are climbing a staircase. It takes n steps to reach the top.

EasyLikely
mathdynamic-programmingmemoization

Palindrome Number

Solve

Given an integer x, return true if x is a palindrome, and false otherwise.

EasyLikely
math

Majority Element

Solve

Given an array nums of size n, return the majority element.

EasyLikely
arrayhash-tabledivide-and-conquer

Valid Parentheses

Solve

Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.

EasyLikely
stringstack

Swap Nodes in Pairs

Solve

Given a linked list, swap every two adjacent nodes and return its head. You must solve the problem without modifying the values in the list's nodes (i.e., only...

MediumLikely
linked-listrecursion

Design Memory Allocator

Solve

You are given an integer n representing the size of a 0-indexed memory array. All memory units are initially free.

MediumLikely
arrayhash-tabledesign

Implement Queue using Stacks

Solve

Implement a first in first out (FIFO) queue using only two stacks. The implemented queue should support all the functions of a normal queue (push, peek, pop, an...

EasyLikely
stackdesignqueue

Trapping Rain Water

Solve

Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining.

HardLikely
arraytwo-pointersdynamic-programming

Permutations

Solve

Given an array nums of distinct integers, return all the possible permutations. You can return the answer in any order.

MediumLikely
arraybacktracking

String to Integer (atoi)

Solve

Implement the myAtoi(string s) function, which converts a string to a 32-bit signed integer.

MediumLikely
string

Reverse Nodes in k-Group

Solve

Given the head of a linked list, reverse the nodes of the list k at a time, and return the modified list.

HardLikely
linked-listrecursion

Length of Last Word

Solve

Given a string s consisting of words and spaces, return the length of the last word in the string.

EasyLikely
string

Count the Number of Fair Pairs

Solve

Given a 0-indexed integer array nums of size n and two integers lower and upper, return the number of fair pairs.

MediumLikely
arraytwo-pointersbinary-search

Remove Duplicates from Sorted Array

Solve

Given an integer array nums sorted in non-decreasing order, remove the duplicates in-place such that each unique element appears only once. The relative order o...

EasyLikely
arraytwo-pointers

Maximum Subarray

Solve

Given an integer array nums, find the subarray with the largest sum, and return its sum.

MediumLikely
arraydivide-and-conquerdynamic-programming

Best Time to Buy and Sell Stock II

Solve

You are given an integer array prices where prices[i] is the price of a given stock on the ith day.

MediumLikely
arraydynamic-programminggreedy

Single Number

Solve

Given a non-empty array of integers nums, every element appears twice except for one. Find that single one.

EasyLikely
arraybit-manipulation

Reverse Integer

Solve

Given a signed 32-bit integer x, return x with its digits reversed. If reversing x causes the value to go outside the signed 32-bit integer range [-231, 231 - 1...

MediumLikely
math

Merge Intervals

Solve

Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals, and return an array of the non-overlapping intervals that cove...

MediumLikely
arraysorting

Course Schedule II

Solve

There are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1. You are given an array prerequisites where prerequisites[i] = [ai, b...

MediumLikely
depth-first-searchbreadth-first-searchgraph

Kth Largest Element in an Array

Solve

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

MediumLikely
arraydivide-and-conquersorting

Design Circular Queue

Solve

Design your implementation of the circular queue. The circular queue is a linear data structure in which the operations are performed based on FIFO (First In Fi...

MediumLikely
arraylinked-listdesign

Trapping Rain Water II

Solve

Given an m x n integer matrix heightMap representing the height of each unit cell in a 2D elevation map, return the volume of water it can trap after raining.

HardLikely
arraybreadth-first-searchheap-priority-queue

Find Winner on a Tic Tac Toe Game

Solve

Tic-tac-toe is played by two players A and B on a 3 x 3 grid. The rules of Tic-Tac-Toe are:

EasyLikely
arrayhash-tablematrix

Linked List Cycle

Solve

Given head, the head of a linked list, determine if the linked list has a cycle in it.

EasyLikely
hash-tablelinked-listtwo-pointers

Longest Substring Without Repeating Characters

Solve

Given a string s, find the length of the longest substring without duplicate characters.

MediumLikely
hash-tablestringsliding-window

Serialize and Deserialize Binary Tree

Solve

Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or transmitte...

HardLikely
stringtreedepth-first-search

Two Sum II - Input Array Is Sorted

Solve

Given a 1-indexed array of integers numbers that is already sorted in non-decreasing order, find two numbers such that they add up to a specific target number....

MediumLikely
arraytwo-pointersbinary-search

First Unique Character in a String

Solve

Given a string s, find the first non-repeating character in it and return its index. If it does not exist, return -1.

EasyLikely
hash-tablestringqueue

Power of Two

Solve

Given an integer n, return true if it is a power of two. Otherwise, return false.

EasyLikely
mathbit-manipulationrecursion

Rectangle Overlap

Solve

An axis-aligned rectangle is represented as a list [x1, y1, x2, y2], where (x1, y1) is the coordinate of its bottom-left corner, and (x2, y2) is the coordinate...

EasyLikely
mathgeometry

Power of Four

Solve

Given an integer n, return true if it is a power of four. Otherwise, return false.

EasyLikely
mathbit-manipulationrecursion

Is Subsequence

Solve

Given two strings s and t, return true if s is a subsequence of t, or false otherwise.

EasyLikely
two-pointersstringdynamic-programming

Maximum Depth of Binary Tree

Solve

Given the root of a binary tree, return its maximum depth.

EasyLikely
treedepth-first-searchbreadth-first-search

Pow(x, n)

Solve

Implement pow(x, n), which calculates x raised to the power n (i.e., xn).

MediumLikely
mathrecursion

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 Qualcomm interviews.

Very Likely

75-100%

Likely

50-74%

Sometimes

25-49%

Rare

0-24%

Preparing for your Qualcomm coding interview

Qualcomm interviews focus heavily on array, two-pointers, string 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. Qualcomm 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 Qualcomm ask in interviews?add

Qualcomm has been reported to ask 46 distinct coding problems. The most common topics are array, two-pointers, string. 22 are Easy difficulty, 20 are Medium, and 4 are Hard. Problems are sorted by frequency - the ones at the top are asked most often.

How hard are Qualcomm coding interviews?add

Based on 46 reported problems, Qualcomm interviews are in line with industry averages - 9% Hard vs 18% overall. 43% 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 Qualcomm coding interview?add

Start with the highest-frequency problems listed on this page. Focus on the core topics: array, two-pointers, string. 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 Qualcomm interview?

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

Simulate a Qualcomm interview with AIarrow_forward