0 day streak

Red Hat coding interview questions

ProductEnterprise SaaS Global

Ranked by how often candidates report them. Each opens in the editor with hidden tests, an animated walkthrough and solutions in four languages; a question you solve once counts for every company that asks it.

0%ready
Your level: practise every reported question.
ProgressTitleDifficultyTopicHow often hereAlso asked atNext step
Lowest Common Ancestor of a Binary TreeLCA Medium Trees & BST Google, Amazon, Microsoft +46 Solve
4SumTwo Pointer Medium Arrays & Hashing Nvidia, DoorDash, Rubrik +9 Solve
Maximum Number of Occurrences of a SubstringSliding Window · Hash Map Medium Arrays & Hashing Microsoft, LinkedIn, Roblox +1 Solve
Subsets IIPick / Not-Pick Medium Recursion & Backtracking Meta, UiPath, PayPal Solve
The Earliest Moment When Everyone Become FriendsConnected Components Medium Graphs Google, Uber, Expedia Group +3 Solve
Design Tic-Tac-ToePre-processing + tradeoffs Medium Design Data Structures Databricks, Shopify, Tesla +7 Solve
Median of Two Sorted ArraysBinary Search on Partition Hard Binary Search Google, Amazon, Microsoft +49 Solve
Integer to RomanGreedy Medium Arrays & Hashing DoorDash, Booking.com, X (Twitter) +21 Solve
Is SubsequenceTwo Pointer Easy Arrays & Hashing Pinterest, Tesla, Electronic Arts +12 Solve
Majority ElementMoore's Voting Algorithm Easy Arrays & Hashing Bloomberg, Instacart, Autodesk +18 Solve
Rotate ImageIn-place Transformations Medium Arrays & Hashing Amazon, Apple, Nvidia +38 Solve
House RobberAlternate Selection / Pick / Not pick Medium Dynamic Programming Google, Microsoft, Airbnb +43 Solve
K Closest Points to OriginTop K / Kth Largest / Smallest Medium Heaps Google, Meta, Netflix +12 Solve
Number of IslandsConnected Components Medium Graphs Google, Amazon, Microsoft +114 Solve
Letter Combinations of a Phone NumberChoice per Position Medium Recursion & Backtracking Amazon, Microsoft, Meta +25 Solve
Generate ParenthesesPick / Not-Pick Medium Recursion & Backtracking Google, Amazon, Microsoft +28 Solve
Sort ColorsDutch National Flag Medium Arrays & Hashing Microsoft, Nvidia, Expedia Group +43 Solve
Min StackStack Medium Design Data Structures Microsoft, Apple, Snowflake +33 Solve
Binary Tree Maximum Path SumPostorder + Multiple Return Values Hard Trees & BST Google, Amazon, Meta +29 Solve
Subsets (2 choices per element)Pick / Not-Pick Medium Recursion & Backtracking Bloomberg, Reddit, Agoda +9 Solve
Pow(x, n) (Binary Exponentiation)Search on Answer Range Medium Binary Search Meta, LinkedIn, eBay +19 Solve
Product of Array Except SelfRight to Left Traversal Medium Arrays & Hashing Amazon, Microsoft, Meta +37 Solve
Shortest Word Distance IIPre-processing + tradeoffs Medium Design Data Structures LinkedIn, Palantir, Elastic +4 Solve
Frequency of the Most Frequent ElementSliding Window · Variable Medium Arrays & Hashing Goldman Sachs, Brex, OYO +1 Solve
Valid ParenthesesStack Basics Easy Stack Google, Amazon, Microsoft +119 Solve
Subarrays with K Different IntegersSliding Window · Hash Map Hard Arrays & Hashing Roblox, Adobe, ServiceNow +10 Solve
Permutation in StringSliding Window · Fixed Medium Arrays & Hashing Databricks, Lyft, Zynga +10 Solve
Minimum Limit of Balls in a BagBinary Search on Answer Space Medium Binary Search Charles Schwab, Fiserv, Global Payments +2 Solve
Meeting Rooms IILine Sweep Medium Intervals Google, Amazon, Meta +50 Solve
Zigzag ConversionSimulation Medium Arrays & Hashing ServiceNow, PayPal, Siemens +3 Solve
Word Break1D DP Medium Dynamic Programming Google, Amazon, Microsoft +35 Solve
String CompressionTwo Pointer Medium Arrays & Hashing Microsoft, Stripe, Nvidia +34 Solve
Design Hit CounterQueue / Circular Buffer Medium Design Data Structures Google, Apple, Uber +21 Solve
Best Time to Buy and Sell StockState Machine DP - Stock Problems Easy Dynamic Programming Amazon, Microsoft, Apple +101 Solve
Random Pick with WeightBasics Medium Binary Search Google, Amazon, Meta +18 Solve
Reorganize StringGreedy Medium Arrays & Hashing Amazon, Apple, Pinterest +11 Solve
Construct Quad TreeDivide and Conquer Medium Recursion & Backtracking Uber, Snowflake, Palantir +1 Solve
Zero Array Transformation IIIAdvanced Medium Heaps Elastic, Plaid, Klarna +1 Solve
Minimum Remove to Make Valid ParenthesesStack Basics Medium Stack Meta, Bloomberg, Snap +4 Solve
Merge k Sorted ListsMerge K Sorted Hard Heaps Google, Amazon, Microsoft +59 Solve
Longest Repeating Character ReplacementSliding Window · Variable Medium Arrays & Hashing Microsoft, Meta, Uber +13 Solve
Climbing Stairs1D DP Easy Dynamic Programming Microsoft, Bloomberg, eBay +34 Solve
Dot Product of Two Sparse VectorsPre-processing + tradeoffs Medium Design Data Structures Meta, Nvidia, Pinterest +5 Solve
Group Shifted StringsHashing Medium Arrays & Hashing Google, Meta, Wix Solve
Also reported, being added to AlgoRung (6)

Make String a Subsequence Using Cyclic Increments · Design an Array Statistics Tracker · Final Array State After K Multiplication Operations I · Maximum Sum of Distinct Subarrays With Length K · Remove Letter To Equalize Frequency · Goat Latin

Questions people ask

What coding questions does Red Hat ask most?

Lowest Common Ancestor of a Binary Tree, 4Sum, Maximum Number of Occurrences of a Substring, Subsets II, The Earliest Moment When Everyone Become Friends, Design Tic-Tac-Toe, Median of Two Sorted Arrays, Integer to Roman.

Which topics come up in Red Hat coding rounds?

strings, arrays, trees, backtracking, sliding window, design data structure.

How hard are Red Hat coding questions?

Of the reported questions, 5 are easy, 35 medium and 4 hard. A 45 to 60 minute live interview where you solve one or two data-structures-and-algorithms problems while explaining your thinking. Interviewers score problem solving, code quality, testing and communication.