Ansys Software Private Limited
NRSolution4u Interview Questions and Answers
Q1. 0/1 Knapsack Problem Statement
A thief is planning to rob a store and can carry a maximum weight of 'W' in his knapsack. The store contains 'N' items where the ith item has a weight of 'wi' and a value of 'vi'....read more
Q2. Binary Tree Right View Problem Statement
Given a binary tree of integers, your task is to print the right view of it. The right view represents a set of nodes visible when the tree is viewed from the right side...read more
Maximum Path Sum Problem Statement
You are given an n-ary tree consisting of 'N' nodes. Your task is to determine the maximum sum of the path from the root to any leaf node.
Example:
Input:
For the given tree:
Q6. Write down the recursion tree for this code:
Recursion tree for a given code
Identify the base case of the recursion
Draw a tree structure with each recursive call as a node
Label each node with the input parameters and return values
More about working at Ansys Software Private Limited
Interview Process at NRSolution4u
Top Software Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month