Add office photos
Engaged Employer

Media.net Software Services (India)

3.6
based on 215 Reviews
Filter interviews by

Thodeti Professional Education and Careers Interview Questions and Answers

Updated 5 Feb 2024
Popular Designations

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

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

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

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
Discover Thodeti Professional Education and Careers 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
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
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Thodeti Professional Education and Careers

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

Top Software Developer Interview Questions from Similar Companies

3.6
 • 122 Interview Questions
3.8
 • 76 Interview Questions
4.1
 • 31 Interview Questions
4.2
 • 26 Interview Questions
3.4
 • 17 Interview Questions
3.8
 • 10 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 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