Problem database last updated: June 20, 2025

SSprinklr logo

Sprinklr Coding Interview Questions

38 problems · 1 Easy, 19 Medium, 18 Hard · Ranked #55 of 458

Difficulty breakdown

1 Easy

3% · avg 23%

19 Medium

50% · avg 59%

18 Hard

47% · avg 18%

Top topics

array
63.2%
dynamic-programming
36.8%1.9x
hash-table
23.7%
string
23.7%
math
18.4%1.5x
depth-first-search
15.8%1.7x

Interview profile

Based on 38 reported problems, Sprinklr interviews are significantly harder than average - 47% Hard vs 18% across all companies.

Compared to the industry average, Sprinklr puts unusual emphasis on rolling-hash (5.3% of problems, 14.1x the industry average), number-theory (5.3% of problems, 10.3x the industry average), bitmask (5.3% of problems, 9.7x the industry average). If you're short on time, these are the categories to double down on.

The most common topics are array (63.2%), dynamic-programming (36.8%), hash-table (23.7%), string (23.7%). Problems below are sorted by frequency, the ones at the top are asked most often.

All 38 problems

Minimum Edge Weight Equilibrium Queries in a Tree

Solve

There is an undirected tree with n nodes labeled from 0 to n - 1. You are given the integer n and a 2D integer array edges of length n - 1, where edges[i] = [ui...

HardVery Likely
arraydynamic-programmingbit-manipulation

Apply Operations on Array to Maximize Sum of Squares

Solve

You are given a 0-indexed integer array nums and a positive integer k.

HardVery Likely
arrayhash-tablegreedy

Next Greater Numerically Balanced Number

Solve

An integer x is numerically balanced if for every digit d in the number x, there are exactly d occurrences of that digit in x.

MediumVery Likely
hash-tablemathbacktracking

Maximize Score After N Operations

Solve

You are given nums, an array of positive integers of size 2 n. You must perform n operations on this array.

HardVery Likely
arraymathdynamic-programming

Minimum Time to Revert Word to Initial State II

Solve

You are given a 0-indexed string word and an integer k.

HardVery Likely
stringrolling-hashstring-matching

Create Components With Same Value

Solve

There is an undirected tree with n nodes labeled from 0 to n - 1.

HardVery Likely
arraymathtree

Minimum Time to Revert Word to Initial State I

Solve

You are given a 0-indexed string word and an integer k.

MediumVery Likely
stringrolling-hashstring-matching

Apply Bitwise Operations to Make Strings Equal

Solve

You are given two 0-indexed binary strings s and target of the same length n. You can do the following operation on s any number of times:

MediumVery Likely
stringbit-manipulation

Number of Great Partitions

Solve

You are given an array nums consisting of positive integers and an integer k.

HardVery Likely
arraydynamic-programming

Count the Number of Powerful Integers

Solve

You are given three integers start, finish, and limit. You are also given a 0-indexed string s representing a positive integer.

HardVery Likely
mathstringdynamic-programming

Closest Subsequence Sum

Solve

You are given an integer array nums and an integer goal.

HardVery Likely
arraytwo-pointersdynamic-programming

Maximum Score of Non-overlapping Intervals

Solve

You are given a 2D integer array intervals, where intervals[i] = [li, ri, weighti]. Interval i starts at position li and ends at ri, and has a weight of weighti...

HardVery Likely
arraybinary-searchdynamic-programming

Asteroid Collision

Solve

We are given an array asteroids of integers representing asteroids in a row. The indices of the asteroid in the array represent their relative position in space...

MediumVery Likely
arraystacksimulation

Robot Collisions

Solve

There are n 1-indexed robots, each having a position on a line, health, and movement direction.

HardLikely
arraystacksorting

Insert Delete GetRandom O(1)

Solve

Implement the RandomizedSet class:

MediumLikely
arrayhash-tablemath

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

Minimize the Difference Between Target and Chosen Elements

Solve

You are given an m x n integer matrix mat and an integer target.

MediumLikely
arraydynamic-programmingmatrix

Number of Provinces

Solve

There are n cities. Some of them are connected, while some are not. If city a is connected directly with city b, and city b is connected directly with city c, t...

MediumLikely
depth-first-searchbreadth-first-searchunion-find

Minimum Number of Food Buckets to Feed the Hamsters

Solve

You are given a 0-indexed string hamsters where hamsters[i] is either:

MediumLikely
stringdynamic-programminggreedy

Partition Labels

Solve

You are given a string s. We want to partition the string into as many parts as possible so that each letter appears in at most one part. For example, the strin...

MediumLikely
hash-tabletwo-pointersstring

Container With Most Water

Solve

You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the ith line are (i, 0) and (i, height[i]).

MediumLikely
arraytwo-pointersgreedy

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

Set Matrix Zeroes

Solve

Given an m x n integer matrix matrix, if an element is 0, set its entire row and column to 0's.

MediumLikely
arrayhash-tablematrix

Max Points on a Line

Solve

Given an array of points where points[i] = [xi, yi] represents a point on the X-Y plane, return the maximum number of points that lie on the same straight line.

HardLikely
arrayhash-tablemath

Validate IP Address

Solve

Given a string queryIP, return "IPv4" if IP is a valid IPv4 address, "IPv6" if IP is a valid IPv6 address or "Neither" if IP is not a correct IP of any type.

MediumLikely
string

Count Valid Paths in a Tree

Solve

There is an undirected tree with n nodes labeled from 1 to n. You are given the integer n and a 2D integer array edges of length n - 1, where edges[i] = [ui, vi...

HardLikely
mathdynamic-programmingtree

Best Time to Buy and Sell Stock

Solve

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

EasyLikely
arraydynamic-programming

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

MediumLikely
arraytwo-pointerssorting

First Missing Positive

Solve

Given an unsorted integer array nums. Return the smallest positive integer that is not present in nums.

HardLikely
arrayhash-table

Largest Rectangle in Histogram

Solve

Given an array of integers heights representing the histogram's bar height where the width of each bar is 1, return the area of the largest rectangle in the his...

HardLikely
arraystackmonotonic-stack

Longest Valid Parentheses

Solve

Given a string containing just the characters '(' and ')', return the length of the longest valid (well-formed) parentheses substring.

HardLikely
stringdynamic-programmingstack

LRU Cache

Solve

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

MediumLikely
hash-tablelinked-listdesign

Russian Doll Envelopes

Solve

You are given a 2D array of integers envelopes where envelopes[i] = [wi, hi] represents the width and the height of an envelope.

HardLikely
arraybinary-searchdynamic-programming

Single Element in a Sorted Array

Solve

You are given a sorted array consisting of only integers where every element appears exactly twice, except for one element which appears exactly once.

MediumLikely
arraybinary-search

Sum of Subarray Minimums

Solve

Given an array of integers arr, find the sum of min(b), where b ranges over every (contiguous) subarray of arr. Since the answer may be large, return the answer...

MediumLikely
arraydynamic-programmingstack

Longest Univalue Path

Solve

Given the root of a binary tree, return the length of the longest path, where each node in the path has the same value. This path may or may not pass through th...

MediumLikely
treedepth-first-searchbinary-tree

Sum of Matrix After Queries

Solve

You are given an integer n and a 0-indexed 2D array queries where queries[i] = [typei, indexi, vali].

MediumLikely
arrayhash-table

3Sum

Solve

Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] + nums[k] == 0.

MediumLikely
arraytwo-pointerssorting

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

Very Likely

75-100%

Likely

50-74%

Sometimes

25-49%

Rare

0-24%

Preparing for your Sprinklr coding interview

Sprinklr interviews focus heavily on array, dynamic-programming, hash-table 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. Sprinklr 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 Sprinklr ask in interviews?add

Sprinklr has been reported to ask 38 distinct coding problems. The most common topics are array, dynamic-programming, hash-table. 1 are Easy difficulty, 19 are Medium, and 18 are Hard. Problems are sorted by frequency - the ones at the top are asked most often.

How hard are Sprinklr coding interviews?add

Based on 38 reported problems, Sprinklr interviews are significantly harder than average - 47% Hard vs 18% across all companies. 50% 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 Sprinklr coding interview?add

Start with the highest-frequency problems listed on this page. Focus on the core topics: array, dynamic-programming, hash-table. 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 Sprinklr interview?

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

Simulate a Sprinklr interview with AIarrow_forward