MTS/R&D Software Developer
MTS/R&D Software Developer Interview Questions and Answers
Q1. breaking a sentence into array of words and returning the base address
The task is to break a sentence into an array of words and return the base address.
Use a loop to iterate through the sentence character by character
Identify word boundaries based on spaces or punctuation marks
Allocate memory for each word and copy the characters into the corresponding array element
Return the base address of the array
Q2. there is array of n numbers & u hv to find sum(=0) of m numbers
Given an array of numbers, find a subset of numbers whose sum is zero.
Use a combination of numbers from the array to find subsets whose sum is zero.
Iterate through all possible combinations of numbers and check if their sum is zero.
Consider using recursion or backtracking to generate all possible combinations.
Optimize the solution by using memoization or dynamic programming to avoid redundant calculations.
Q3. design a class to implement search & insert for it
Design a class to implement search & insert for an array of strings
Create a class with methods for search and insert
Use an array to store the strings
Implement a search method that iterates through the array and returns the index of the found string
Implement an insert method that adds a new string to the array
Calculate your in-hand salary
Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Reviews
Interviews
Salaries
Users/Month