Mentor Graphics interview questions

109 questions from 8 candidate reports · 2015 to 2021

Online test → Technical → Technical → HR → HR·62% entry level

DSA

Showing 42 of 79 reported in this area

Reverse a linked list in groups of K.
asked oncemediumPractice this →
Check whether a binary tree is symmetric
asked oncemediumPractice this →
Check whether a binary tree is a Sum Tree
asked oncemediumPractice this →
Implement problems using DFS and recursion
asked oncemediumPractice this →
Reverse a linked list in groups of size 2.
asked oncemediumPractice this →
Explain BST search operation and BST Iterator
asked oncemediumPractice this →
Print all root-to-leaf paths of a binary tree
asked oncemediumPractice this →
Reverse a linked list in groups of given size
asked oncemediumPractice this →
Traverse a given m x n matrix in spiral order.
asked oncemediumPractice this →
Reverse a linked list in groups of given size k.
asked oncemediumPractice this →
Perform vertical order traversal of a binary tree
asked oncemediumPractice this →
Find the minimum element in a rotated sorted array.
asked oncemediumPractice this →
Explain and implement Topological Sorting of a graph
asked oncemediumPractice this →
Implement your own Binary Search Tree (BST) Iterator
asked oncemediumPractice this →
Find the kth minimum element in a Binary Search Tree.
asked oncemediumPractice this →
Implement an efficient algorithm to compute pow(x, n).
asked oncemediumPractice this →
How would you check connectivity if the graph is directed?
asked oncemediumPractice this →
Detect a cycle in a directed graph and an undirected graph.
asked oncemediumPractice this →
Given an N-ary tree, find all paths from root to leaf nodes.
asked oncemediumPractice this →
Explain the Knuth-Morris-Pratt (KMP) string matching algorithm
asked oncemediumPractice this →
Given two coordinates, determine whether the two lines intersect
asked oncemediumPractice this →
Re-solve written test coding questions considering all boundary cases
asked oncemediumPractice this →
Given a BST, print all nodes which do not have siblings in preorder traversal.
asked oncemediumPractice this →
Solve coding problems based on strings using optimal time and space complexity
asked oncemediumPractice this →
For a given node in a binary tree, print its parent and sibling node if they exist.
asked oncemediumPractice this →
Given an unsorted array, find the length of the longest contiguous subarray product.
asked oncemediumPractice this →
Given a graph problem, design an algorithm, handle all base cases, and write the code
asked oncemediumPractice this →
Reverse the words of a string in O(1) extra space (e.g., "i am a boy" → "boy a am i").
asked oncemediumPractice this →
Find the path with minimum cost in a matrix from top-left corner to bottom-right corner
asked oncemediumPractice this →
Given a matrix M where M(i,j)=1 if i is the parent of j, construct the corresponding tree.
asked oncemediumPractice this →
Optimize counting bit changes in a 32-bit integer by reducing comparisons using extra space.
asked oncemediumPractice this →
How would you search if both rows and columns of the 2D array are sorted in descending order?
asked oncemediumPractice this →
Given a number and its index, determine if it is a valid index for that number in a Sudoku game
asked oncemediumPractice this →
Given two arrays of sizes m and n (m >> n), find the common elements using an optimal algorithm.
asked oncemediumPractice this →
Find the inorder successor of a node in a Binary Search Tree where each node has a parent pointer.
asked oncemediumPractice this →
Given jobs with start time, end time, and CPU load, find the maximum CPU load at any time interval.
asked oncemediumPractice this →
Print the level number along with each node while performing level order traversal of a binary tree.
asked oncemediumPractice this →
Given a 2D array M where M[i][j] = 1 indicates i is the parent of j, construct the corresponding tree.
asked oncemediumPractice this →
Given a number n, find the nearest smaller and greater numbers having the same number of set bits as n.
asked oncemediumPractice this →
Search for a key in a 2D array where rows are sorted in ascending order and columns in descending order.
asked oncemediumPractice this →
Given a binary tree, count the number of subtrees where all nodes in that subtree have the same data value.
asked oncemediumPractice this →
Given n distinct integers and inequality signs between boxes, place the numbers to satisfy all inequalities.
asked oncemediumPractice this →

CS fundamentals

Showing 11 of 27 reported in this area

Explain Object-Oriented Programming (OOPS) concepts in detail
asked 2×mediumPractice this →
Construct a 16:1 multiplexer using 4:1 multiplexers.
asked oncemediumPractice this →
What are virtual functions and virtual destructors in C++?
asked oncemediumPractice this →
Can a function be called before main() in C++? Explain possible ways.
asked oncemediumPractice this →
Analyze time complexity of different approaches and justify the optimal one
asked oncemediumPractice this →
Explain templates in C++ and write the syntax for declaring a generic class.
asked oncemediumPractice this →
Given a logic circuit, identify the logic it represents and draw its truth table.
asked oncemediumPractice this →
How do virtual functions work internally in C++? Explain VTABLE, VPTR, and compiler role.
asked oncemediumPractice this →
Predict the output of a C program involving malloc, pointer arithmetic, strcpy, and printf.
asked oncemediumPractice this →
What is the static keyword in C++ and how can non-static variables be accessed inside a static function?
asked oncemediumPractice this →
Find errors and predict the output of a given C++ program involving object passing, const references, and pointers.
asked oncemediumPractice this →

Puzzles

Showing 3 of 13 reported in this area

Measuring Block puzzle.
asked oncemediumPractice this →
Count the total number of squares and rectangles on a chessboard.
asked oncemediumPractice this →
Given 100 balls with one defective ball and a balance, find the minimum number of steps to identify the defective ball.
asked oncemediumPractice this →

System design

Showing 3 of 4 reported in this area

Design a computer system with intelligence for the game Tic-Tac-Toe.
asked oncemediumPractice this →
Write a function that returns a different string every time it is called, even when called simultaneously across different machines and processors.
asked oncemediumPractice this →
Design a traffic signaling system and compute the average speed of vehicles; implement the solution in code
asked oncehardPractice this →

Behavioural

1 questions reported in this area

Answer behavioral questions assessing professional conduct

Showing 60 of 109 questions. Ranked by how often the same question came back across reports.

Practise a Mentor Graphics-style interview

A spoken interview built from these questions, scored when you finish; the report is yours.

Start practising

Common questions

What questions does Mentor Graphics ask?

Candidate interview reports most often cover DSA (63%) and CS fundamentals (22%).

How many rounds does Mentor Graphics interview have?

Candidate interview reports show an average of 4.6 rounds per experience, with a typical sequence of Online test → Technical → Technical → HR → HR. Individual interview paths can vary.

Is the Mentor Graphics interview hard?

Among questions with a reported difficulty, the mix is easy 30%, medium 61%, hard 9%.

Keep reading