Upload Button Icon Add office photos

Mentor Graphics

Compare button icon Compare button icon Compare

Filter interviews by

Mentor Graphics Software Developer Interview Questions and Answers

Updated 20 Feb 2023

8 Interview questions

A Software Developer was asked
Q. You have a stream of bytes from which you can read one byte at a time. You only have enough space to store one byte. After processing those bytes, you have to return a random byte. Note: The probability of ...
Ans. 

Return a random byte from a stream of bytes with equal probability.

  • Create a variable to store the count of bytes read

  • Create a variable to store the current random byte

  • For each byte read, generate a random number between 0 and the count of bytes read

  • If the random number is 0, store the current byte as the random byte

  • Return the random byte

A Software Developer was asked
Q. Devise an algorithm to determine the Nth-to-Last element in a singly linked list of unknown length. If N = 0, then your algorithm must return the last element. You should parse the list only once
Ans. 

Algorithm to find Nth-to-Last element in a singly linked list of unknown length

  • Traverse the list and maintain two pointers, one at the beginning and one at Nth node from beginning

  • Move both pointers simultaneously until the second pointer reaches the end of the list

  • The first pointer will be pointing to the Nth-to-Last element

  • If N=0, return the last element

  • Parse the list only once

Software Developer Interview Questions Asked at Other Companies

asked in Amazon
Q1. Maximum Subarray Sum Problem Statement Given an array of integers ... read more
asked in Rakuten
Q2. Merge Two Sorted Arrays Problem Statement Given two sorted intege ... read more
asked in Amazon
Q3. Minimum Number of Platforms Needed Problem Statement You are give ... read more
asked in Cognizant
Q4. Nth Fibonacci Number Problem Statement Calculate the Nth term in ... read more
asked in PhonePe
Q5. Form a Triangle Problem Statement You are given an array of integ ... read more
A Software Developer was asked
Q. Given an array of integers, print all possible permutations. Also explain your approach
Ans. 

Print all possible permutations of an array of integers

  • Use recursion to swap elements and generate permutations

  • Start with the first element and swap it with each subsequent element

  • Repeat the process for the remaining elements

  • Stop when all elements have been swapped with the first element

  • Print each permutation as it is generated

A Software Developer was asked
Q. Design a Stack data structure that also prints the minimum element in O(1) time.
Ans. 

Design a stack that prints the minimum element pushed in O(1)

  • Use two stacks, one for storing elements and another for storing minimums

  • When pushing an element, compare it with the top of minimum stack and push the smaller one

  • When popping an element, pop from both stacks

  • To get the minimum element, just return the top of minimum stack

A Software Developer was asked
Q. Given a matrix mat[m][n] where all the rows and columns are sorted non-decreasingly, find a number. What will be the complexity of the solution?
Ans. 

To find a number in a matrix where all rows and columns are sorted non-decreasingly. Complexity of the solution.

  • Use binary search to find the number in each row and column

  • Start from the top-right corner or bottom-left corner to optimize search

  • Time complexity: O(m log n) or O(n log m) depending on the starting corner

A Software Developer was asked
Q. Given a directed graph, determine if it contains a cycle.
Ans. 

To check if a directed graph is cyclic or not

  • Use Depth First Search (DFS) algorithm to traverse the graph

  • Maintain a visited set to keep track of visited nodes

  • Maintain a recursion stack to keep track of nodes in the current DFS traversal

  • If a node is visited and is already in the recursion stack, then the graph is cyclic

  • If DFS traversal completes without finding a cycle, then the graph is acyclic

Be interview-ready. Browse the most asked HR questions.
illustration image
A Software Developer was asked
Q. Given a linked list with a loop, how would you find the starting point of the loop?
Ans. 

To find the starting point of a loop in a linked list, use Floyd's cycle-finding algorithm.

  • Use two pointers, one moving at twice the speed of the other.

  • When they meet, move one pointer to the head of the list and keep the other at the meeting point.

  • Move both pointers one step at a time until they meet again, which is the starting point of the loop.

Are these interview questions helpful?
A Software Developer was asked
Q. Given a binary tree, determine if it is a valid binary search tree (BST).
Ans. 

Check if a binary tree is a binary search tree or not.

  • Traverse the tree in-order and check if the values are in ascending order.

  • For each node, check if its value is greater than the maximum value of its left subtree and less than the minimum value of its right subtree.

  • Use recursion to check if all nodes in the tree satisfy the above condition.

Mentor Graphics Software Developer Interview Experiences

2 interviews found

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
Selected Selected

I appeared for an interview before Feb 2022.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Technical 

(1 Question)

  • Q1. Linked list (detect loop, reverse, delte a node) tree (height, DFS) graph theory concept C++ basic questions
Round 3 - One-on-one 

(1 Question)

  • Q1. Total 3 round of Technical interviews.

Interview Preparation Tips

Interview preparation tips for other job seekers - C++ basics, Algo and Data structure and some basic concept of graph theory.

Interview Questionnaire 

9 Questions

  • Q1. Questions related to the work done at my previous company
  • Q2. Find if a given directed graph is cyclic or not
  • Ans. 

    To check if a directed graph is cyclic or not

    • Use Depth First Search (DFS) algorithm to traverse the graph

    • Maintain a visited set to keep track of visited nodes

    • Maintain a recursion stack to keep track of nodes in the current DFS traversal

    • If a node is visited and is already in the recursion stack, then the graph is cyclic

    • If DFS traversal completes without finding a cycle, then the graph is acyclic

  • Answered by AI
  • Q3. You have a stream of bytes from which you can read one byte at a time. You only have enough space to store one byte. After processing those bytes, you have to return a random byte. Note: The probability of...
  • Ans. 

    Return a random byte from a stream of bytes with equal probability.

    • Create a variable to store the count of bytes read

    • Create a variable to store the current random byte

    • For each byte read, generate a random number between 0 and the count of bytes read

    • If the random number is 0, store the current byte as the random byte

    • Return the random byte

  • Answered by AI
  • Q4. Find if a given Binary Tree is BST or not
  • Q5. Devise an algorithm to determine the Nth-to-Last element in a singly linked list of unknown length. If N = 0, then your algorithm must return the last element. You should parse the list only once
  • Ans. 

    Algorithm to find Nth-to-Last element in a singly linked list of unknown length

    • Traverse the list and maintain two pointers, one at the beginning and one at Nth node from beginning

    • Move both pointers simultaneously until the second pointer reaches the end of the list

    • The first pointer will be pointing to the Nth-to-Last element

    • If N=0, return the last element

    • Parse the list only once

  • Answered by AI
  • Q6. Given an array of integers, print all possible permutations. Also explain your approach
  • Ans. 

    Print all possible permutations of an array of integers

    • Use recursion to swap elements and generate permutations

    • Start with the first element and swap it with each subsequent element

    • Repeat the process for the remaining elements

    • Stop when all elements have been swapped with the first element

    • Print each permutation as it is generated

  • Answered by AI
  • Q7. Design a Stack DS that also prints in O(1) the minimum element you pushed in the stack
  • Ans. 

    Design a stack that prints the minimum element pushed in O(1)

    • Use two stacks, one for storing elements and another for storing minimums

    • When pushing an element, compare it with the top of minimum stack and push the smaller one

    • When popping an element, pop from both stacks

    • To get the minimum element, just return the top of minimum stack

  • Answered by AI
  • Q8. Given a linked list with loop, how would you find the starting point of the loop ?
  • Ans. 

    To find the starting point of a loop in a linked list, use Floyd's cycle-finding algorithm.

    • Use two pointers, one moving at twice the speed of the other.

    • When they meet, move one pointer to the head of the list and keep the other at the meeting point.

    • Move both pointers one step at a time until they meet again, which is the starting point of the loop.

  • Answered by AI
  • Q9. Find a number a matrix mat[m][n] where all the rows and columns are sorted non-decreasingly. What will be the complexity of the solution
  • Ans. 

    To find a number in a matrix where all rows and columns are sorted non-decreasingly. Complexity of the solution.

    • Use binary search to find the number in each row and column

    • Start from the top-right corner or bottom-left corner to optimize search

    • Time complexity: O(m log n) or O(n log m) depending on the starting corner

  • Answered by AI

Interview Preparation Tips

Skills: Algorithm, Data structure
College Name: Na

Skills evaluated in this interview

Top trending discussions

View All
Interview Hub
1w (edited)
anshitanegi
·
ex -
Planet Spark
When HR’s Chinese English made me drop the interview!
So, I talked to the HR yesterday about the interview. I asked Please send me the location But their English… bro I was shocked! It was like talking to someone jisne english nahi kuch ar hi seekh liya ho, if the HR’s English is this I can only imagine the rest of the company I decided to drop the interview with this chinese english😶‍🌫️
FeedCard Image
Got a question about Mentor Graphics?
Ask anonymously on communities.

Interview questions from similar companies

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(1 Question)

  • Q1. Copy constructor implementation it was based on
Round 2 - Technical 

(1 Question)

  • Q1. Binary search question on array
  • Ans. 

    Binary search is an efficient algorithm for finding an item from a sorted array by repeatedly dividing the search interval in half.

    • 1. Binary search requires a sorted array to function correctly.

    • 2. It works by comparing the target value to the middle element of the array.

    • 3. If the target value is less than the middle element, search the left half; if greater, search the right half.

    • 4. Repeat the process until the target ...

  • Answered by AI
Round 3 - HR 

(1 Question)

  • Q1. Experience and expectations on salary
Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. General resume discussions
  • Q2. HR questiosn aslso
Interview experience
2
Poor
Difficulty level
Hard
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Job Portal and was interviewed in Sep 2024. There were 4 interview rounds.

Round 1 - Coding Test 

2 DSA question was asked

Round 2 - Aptitude Test 

40 questions in 20 minutes

Round 3 - Technical 

(2 Questions)

  • Q1. Stones games 2 leetcode
  • Q2. Permutations of array
  • Ans. 

    Generate all possible permutations of an array of strings

    • Use recursion to generate permutations

    • Swap elements to create different permutations

    • Base case: when array size is 1, return array as permutation

  • Answered by AI
Round 4 - Technical 

(1 Question)

  • Q1. Project discussion

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - HR 

(1 Question)

  • Q1. Tell me about yourself, availability, visa-related questions
Round 2 - Coding Test 

Dynamic programming questions, longg time to complete the 2 questions

Round 3 - Group Discussion 

Problem solving : a clock with 3 hands, no numbers written, guess what it is

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

1 hour 3 questions easy to medium leetcode.

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Campus Placement and was interviewed in Apr 2023. There were 3 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Coding Test 

Platform - Mettl
3 Questions of medium level difficulty to do in 2 hours, typically contain concepts like DSA, DP etc.

Round 3 - Technical 

(3 Questions)

  • Q1. What is structure padding?
  • Q2. College Project discussion
  • Q3. Form a dictionary from name.

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-

I applied via Referral

Round 1 - Coding Test 

Java internals, coding questions 2sum

Round 2 - Technical 

(2 Questions)

  • Q1. Hld of your previous project
  • Q2. Question related to self build projects
Round 3 - HR 

(2 Questions)

  • Q1. Salary negotiation
  • Q2. Location constrain if any
  • Ans. 

    Open to relocation for the right opportunity

    • Willing to relocate for the right job opportunity

    • Flexible with location for the right role

    • Open to considering different locations for the right position

  • Answered by AI

I appeared for an interview in Apr 2021.

Round 1 - Coding Test 

(2 Questions)

Round duration - 120 Minutes
Round difficulty - Medium

I was MCQ + Coding round, Their were MCQ Based on DSA, Aptitude and 2 easy coding questions.

  • Q1. 

    Ninja Competition Problem Statement

    Ninja is organizing a coding competition where two teams compete at a time. To keep it fair and interesting, both teams must have an equal number of members. Ninja’s ta...

  • Ans. 

    Check if Ninja can create two teams with equal members given an integer N and its divisors.

    • Iterate through all divisors of N and assign members to the first or second team based on whether the divisor is even or odd.

    • Keep track of the total members in each team and check if they are equal at the end.

    • Return true if the total members in both teams are equal, false otherwise.

  • Answered by AI
  • Q2. 

    Help Bob Out! - Validating IFSC Code

    Bob has just turned 18 and opened a bank account. Being inexperienced with banking, Bob needs your help to validate whether an IFSC code provided by his bank is valid.

    ...
  • Ans. 

    Validate IFSC code based on given rules and return True or False for each test case.

    • Check if the code is 11 characters long.

    • Verify the first four characters are uppercase alphabets.

    • Ensure the fifth character is '0'.

    • Validate that the last six characters are alphanumeric.

  • Answered by AI
Round 2 - Video Call 

Round duration - 50 Minutes
Round difficulty - Easy

The nature of the interviewer was very kind. The test was proctored, our webcam and mic were on, and shared my screen.

Round 3 - Video Call 

Round duration - 50 minutes
Round difficulty - Easy

The nature of the interviewer was very kind. The test was proctored, our webcam and mic were on, and shared my screen.

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - 1 in BangaloreEligibility criteriaNo criteriaBottomline Technologies interview preparation:Topics to prepare for the interview - Data Structure, Algorithms, Development, Programming Languages, OOPsTime required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : Be strong at your basics.
Tip 2 : Do at least 2 projects and ask to find answers like why are you choosing this tech stack? why did not you choose its alternatives Know your project in and out because they might ask you for a modification in your project?

Application resume tips for other job seekers

Tip 1 : Have some projects on your resume.
Tip 2 : Do not put false things on your resume.
Tip 3 : Try to keep a single-page resume.

Final outcome of the interviewRejected

Mentor Graphics Interview FAQs

How many rounds are there in Mentor Graphics Software Developer interview?
Mentor Graphics interview process usually has 3 rounds. The most common rounds in the Mentor Graphics interview process are Resume Shortlist, Technical and One-on-one Round.
How to prepare for Mentor Graphics Software Developer interview?
Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at Mentor Graphics. The most common topics and skills that interviewers at Mentor Graphics expect are C++, DS, Design Development, Programming and Soft Skills.
What are the top questions asked in Mentor Graphics Software Developer interview?

Some of the top questions asked at the Mentor Graphics Software Developer interview -

  1. You have a stream of bytes from which you can read one byte at a time. You only...read more
  2. Find a number a matrix mat[m][n] where all the rows and columns are sorted non-...read more
  3. Devise an algorithm to determine the Nth-to-Last element in a singly linked lis...read more

Tell us how to improve this page.

Overall Interview Experience Rating

4/5

based on 1 interview experience

Difficulty level

Moderate 100%

Duration

2-4 weeks 100%
View more
Mentor Graphics Software Developer Salary
based on 10 salaries
₹16.8 L/yr - ₹25 L/yr
83% more than the average Software Developer Salary in India
View more details

Mentor Graphics Software Developer Reviews and Ratings

based on 2 reviews

4.0/5

Rating in categories

3.7

Skill development

4.3

Work-life balance

3.7

Salary

4.3

Job security

4.3

Company culture

3.7

Promotions

4.3

Work satisfaction

Explore 2 Reviews and Ratings
Senior Member of Technical Staff
69 salaries
unlock blur

₹14.6 L/yr - ₹22.1 L/yr

Lead Member Technical Staff
41 salaries
unlock blur

₹20.4 L/yr - ₹32 L/yr

Member Consulting Staff
31 salaries
unlock blur

₹34.3 L/yr - ₹56 L/yr

Member Technical Staff
29 salaries
unlock blur

₹13.5 L/yr - ₹22.2 L/yr

Software Engineer
15 salaries
unlock blur

₹12 L/yr - ₹22 L/yr

Explore more salaries
Compare Mentor Graphics with

Duck Creek Technologies

4.4
Compare

Mobileum

3.2
Compare

OnProcess Technology

3.9
Compare

Yodlee

3.9
Compare
write
Share an Interview