Red Hat Interview Questions

Red Hat Interview Guides

Click or hover over a slice to explore questions for that topic.
Data Structures & Algorithms
(84)
SQL
(63)
Machine Learning
(58)
Probability
(32)
Statistics
(21)

Red Hat Interview Questions

Practice for the Red Hat interview with these recently asked interview questions.

QuestionTopicDifficulty
Data Structures & Algorithms
Medium

Binary Tree Validation

You are given the root of a binary tree. You need to determine if it is a valid binary search tree (BST).

A valid BST is defined as follows:

  • The left subtree of a node contains only nodes with values less than or equal to the node’s value.
  • The right subtree of a node contains only nodes with values greater than or equal to the node’s value.
  • Both the left and right subtrees must also be binary search trees.

Given the function def is_valid_bst(root: Node) -> bool:, return True if the binary tree is a valid BST. Otherwise, return False.

Example:

Input:

imageConverted Binary Tree.png

Output:

def is_valid_bst(Node(3)) -> True
Data Structures & Algorithms
Medium
SQL
Easy
Loading pricing options

View all Red Hat questions

Challenge

Check your skills...
How prepared are you for working at Red Hat?

Red Hat Salaries by Position

$133K
$182K
Product Manager
Median: $164K
Mean (Average): $160K
Data points: 8
ML Engineer*
$107K
ML Engineer
Median: $107K
Mean (Average): $107K
Data points: 1
$60K
$173K
Software Engineer
Median: $93K
Mean (Average): $100K
Data points: 1,277
$75K
$128K
Data Scientist
Median: $95K
Mean (Average): $99K
Data points: 20
Marketing Analyst*
$89K
$109K
Marketing Analyst
Median: $99K
Mean (Average): $99K
Data points: 2
$72K
$99K
Data Analyst
Median: $93K
Mean (Average): $88K
Data points: 3
$77K
$95K
Business Analyst
Median: $93K
Mean (Average): $88K
Data points: 3
Business Intelligence*
$76K
Business Intelligence
Median: $76K
Mean (Average): $76K
Data points: 2

Most data science positions fall under different position titles depending on the actual role.

From the graph we can see that on average the Product Manager role pays the most with a $160,375 base salary while the Business Intelligence role on average pays the least with a $75,982 base salary.

Discussion & Interview Experiences

?
There are no comments yet. Start the conversation by leaving a comment.