Add office photos
Media.net Software Services (India) logo
Engaged Employer

Media.net Software Services (India)

Verified
3.6
based on 215 Reviews
Filter interviews by
Software Developer
Fresher
Clear (1)

Media.net Software Services (India) Software Developer Interview Questions and Answers

Updated 5 Feb 2024

Q1. Interleaving Two Strings Problem Statement

You are given three strings 'A', 'B', and 'C'. Determine if 'C' is formed by interleaving 'A' and 'B'.

String 'C' is an interleaving of 'A' and 'B' if the length of 'C...read more

Ans.

The problem involves determining if a string 'C' is formed by interleaving two given strings 'A' and 'B'.

  • Check if the length of 'C' is equal to the sum of the lengths of 'A' and 'B'.

  • Verify if all characters of 'A' and 'B' exist in 'C' while maintaining their order.

  • Return 'True' if 'C' is an interleaving of 'A' and 'B', otherwise return 'False'.

Add your answer
right arrow

Q2. Construct Binary Tree from Inorder and Postorder Traversal

Given two lists representing the inorder and postorder traversal of a binary tree of integer type with 'N' nodes, construct the binary tree and return ...read more

Ans.

Construct a binary tree from inorder and postorder traversal lists and return its root.

  • Create a map to store the indices of elements in the inorder traversal list for quick access during tree construction.

  • Use the postorder list to determine the root of the tree and recursively build left and right subtrees.

  • Construct the tree by recursively dividing the inorder list based on the root index in postorder list.

  • Return the root of the constructed binary tree.

  • Example: IN_ORDER = [9,...read more

Add your answer
right arrow
Media.net Software Services (India) Software Developer Interview Questions and Answers for Freshers
illustration image

Q3. Nodes at Distance K from Target Node in Binary Tree

Given a Binary Tree of distinct integers and two integers, target and K, return a list of values of all nodes located at a distance K from the target node.

Ex...read more

Ans.

Find nodes at distance K from target node in a Binary Tree.

  • Use BFS to traverse the tree and keep track of the distance of each node from the target node.

  • Maintain a set to keep track of visited nodes to avoid revisiting them.

  • Return the values of nodes at distance K from the target node.

Add your answer
right arrow

Q4. Boxes of Power Problem Statement

Given a set of boxes represented by an array gainPower, where each box has a certain power value, along with an initial power value 'power', your task is to maximize the total s...read more

Ans.

Maximize total score by selecting boxes optimally based on power values and operations.

  • Iterate through the boxes and perform operations based on power values and current score

  • Keep track of power, score, and selected boxes to maximize total score

  • Example: For input [3, 50, [20, 30, 40]], select boxes with power 20 and 30 to get a score of 2

Add your answer
right arrow
Discover Media.net Software Services (India) interview dos and don'ts from real experiences

Q5. Subarray Challenge: Largest Equal 0s and 1s

Determine the length of the largest subarray within a given array of 0s and 1s, such that the subarray contains an equal number of 0s and 1s.

Input:

Input begins with...read more

Ans.

Find the length of the largest subarray with equal number of 0s and 1s in a given array.

  • Iterate through the array and maintain a count of 0s and 1s encountered so far.

  • Store the count difference in a hashmap with the index as key.

  • If the same count difference is encountered again, the subarray between the two indices has equal 0s and 1s.

  • Return the length of the longest subarray found.

Add your answer
right arrow
Q6. Given a problem statement and a piece of code, how would you find and correct the bug in the code?
Ans.

To find and correct a bug in code, analyze problem statement, review code, use debugging tools, and test different scenarios.

  • Understand the problem statement and expected output

  • Review the code for syntax errors, logical errors, and potential bugs

  • Use debugging tools like breakpoints, print statements, and IDE debuggers

  • Test the code with different inputs and edge cases to identify the bug

  • Make necessary corrections and retest the code to ensure bug is fixed

Add your answer
right arrow
Contribute & help others!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos

Interview Process at Media.net Software Services (India) Software Developer

based on 3 interviews
1 Interview rounds
Coding Test Round
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Developer Interview Questions from Similar Companies

Amazon Logo
4.1
 • 321 Interview Questions
Oracle Logo
3.7
 • 45 Interview Questions
Ericsson Logo
4.1
 • 16 Interview Questions
Qualcomm Logo
3.8
 • 11 Interview Questions
View all
Recently Viewed
COMPANY BENEFITS
Dilip Buildcon
304 benefits
COMPANY BENEFITS
Dilip Buildcon
304 benefits
COMPANY BENEFITS
IRB Infrastructure
60 benefits
COMPANY BENEFITS
KNR Constructions
20 benefits
JOBS
Browse jobs
Discover jobs you love
INTERVIEWS
Daikin
No Interviews
INTERVIEWS
Dentsu Aegis Network
No Interviews
INTERVIEWS
NCR Voyix
No Interviews
INTERVIEWS
Saint-Gobain
No Interviews
INTERVIEWS
Rohm Semiconductor
No Interviews
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter