25 problems · 7 Easy, 12 Medium, 6 Hard · Ranked #81 of 458
Difficulty breakdown
7 Easy
28% · avg 23%
12 Medium
48% · avg 59%
6 Hard
24% · avg 18%
Top topics
array
72%
sorting
28%1.9x
string
20%
hash-table
20%
breadth-first-search
20%2.4x
matrix
16%1.8x
Interview profile
Based on 25 reported problems, Palantir Technologies interviews are slightly harder than average - 24% Hard vs 18% across all companies.
Compared to the industry average, Palantir Technologies puts unusual emphasis on rolling-hash (8% of problems, 21.4x the industry average), hash-function (8% of problems, 13.8x the industry average), merge-sort (8% of problems, 10.9x the industry average). If you're short on time, these are the categories to double down on.
The most common topics are array (72%), sorting (28%), string (20%), hash-table (20%). Problems below are sorted by frequency, the ones at the top are asked most often.
All 25 problems
Problem
Difficulty
Frequency
Topics
Find Beautiful Indices in the Given Array I
You are given a 0-indexed string s, a string a, a string b, and an integer k.
Given an integer array nums and an integer k, return true if there are two distinct indices i and j in the array such that nums[i] == nums[j] and abs(i - j) <=...
You are given two integers m and n that represent the height and width of a rectangular piece of wood. You are also given a 2D integer array prices, where price...
You are given an integer array coordinates, coordinates[i] = [x, y], where [x, y] represents the coordinate of a point. Check if these points make a straight li...
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...
Given an array of integers temperatures represents the daily temperatures, return an array answer such that answer[i] is the number of days you have to wait aft...
You are given an image represented by an m x n grid of integers image, where image[i][j] represents the pixel value of the image. You are also given three integ...
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.
Given a list of accounts where each element accounts[i] is a list of strings, where the first element accounts[i][0] is a name, and the rest of the elements are...
All Ancestors of a Node in a Directed Acyclic Graph
You are given a positive integer n representing the number of nodes of a Directed Acyclic Graph (DAG). The nodes are numbered from 0 to n - 1 (inclusive).
Given an integer array nums and an integer k, return true if there are two distinct indices i and j in the array such that nums[i] == nums[j] and abs(i - j) <=...
You are given two integers m and n that represent the height and width of a rectangular piece of wood. You are also given a 2D integer array prices, where price...
You are given an integer array coordinates, coordinates[i] = [x, y], where [x, y] represents the coordinate of a point. Check if these points make a straight li...
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...
Given an array of integers temperatures represents the daily temperatures, return an array answer such that answer[i] is the number of days you have to wait aft...
You are given an image represented by an m x n grid of integers image, where image[i][j] represents the pixel value of the image. You are also given three integ...
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.
Given a list of accounts where each element accounts[i] is a list of strings, where the first element accounts[i][0] is a name, and the rest of the elements are...
MediumSometimes
arrayhash-tablestring
All Ancestors of a Node in a Directed Acyclic Graph
You are given a positive integer n representing the number of nodes of a Directed Acyclic Graph (DAG). The nodes are numbered from 0 to n - 1 (inclusive).
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.
MediumSometimes
arraydepth-first-searchbreadth-first-search
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 Palantir Technologies interviews.
Very Likely
75-100%
Likely
50-74%
Sometimes
25-49%
Rare
0-24%
Preparing for your Palantir Technologies coding interview
Palantir Technologies interviews focus heavily on array, sorting, 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. Palantir Technologies 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.
What coding problems does Palantir Technologies ask in interviews?add
Palantir Technologies has been reported to ask 25 distinct coding problems. The most common topics are array, sorting, string. 7 are Easy difficulty, 12 are Medium, and 6 are Hard. Problems are sorted by frequency - the ones at the top are asked most often.
How hard are Palantir Technologies coding interviews?add
Based on 25 reported problems, Palantir Technologies interviews are slightly harder than average - 24% Hard vs 18% across all companies. 48% 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 Palantir Technologies coding interview?add
Start with the highest-frequency problems listed on this page. Focus on the core topics: array, sorting, string. Practice solving them under time pressure and explaining your approach out loud. Mock interviews with AI can simulate the real experience.
Ready to ace your Palantir Technologies interview?
Simulate a real Palantir Technologies coding interview with an AI interviewer. Get a scorecard with specific feedback on your problem-solving, code quality, and communication.