Premium Employer

Info Edge

4.0
based on 1.9k Reviews
Filter interviews by

10+ Dr. Reddy's Interview Questions and Answers

Updated 18 Sep 2024
Popular Designations
Q1. Rearrange array elements.

Given an array ‘A’ having ‘N’ integers and an integer ‘m’. You need to rearrange the array elements such that after re-arrangement difference of array elements with ‘m’ should be in a s...read more

View 3 more answers
Q2. Anagram Pairs

Pre-requisites: Anagrams are defined as words or names that can be formed by rearranging letters of another word. Such as "spar" can be formed by rearranging letters of "rasp". Hence, "spar" and "...read more

View 3 more answers
Q3. Print Nodes at Distance K From a Given Node

You are given an arbitrary binary tree, a node of the tree, and an integer 'K'. You need to find all such nodes which have a distance K from the given node and return ...read more

Ans.

The task is to find all nodes in a binary tree that are at a distance K from a given node.

  • Traverse the binary tree to find the given node

  • From the given node, perform a depth-first search to find all nodes at distance K

  • Use a list to store the values of the nodes at distance K

  • Return the list of values in any order

View 3 more answers
Q4. Pattern: Triangle of numbers

Ninja is given a pattern. Now he is asked to print the same pattern for any given ‘N’ number of rows.

For example, Pattern for ‘N’ = 4 will be. 1 232 34545 4567654 

Input Format:

The...read more
View 2 more answers
Discover Dr. Reddy's interview dos and don'ts from real experiences
Q5. Technical Question

What is web server and application server ?

Add your answer
Q6. OOPS Question

Create a class and than inherit it in child class. Create an object. Add some exceptions.

Add your answer
Q7. Technical Question

How internet works?

Add your answer
Q8. DBMS Question

Write query to find nth highest salary.

Add your answer
Q9. OOPS Question

Explain oops concepts.

View 2 more answers

Q10. Insert node in binary search tree

Ans.

To insert a node in a binary search tree, compare the value of the node to be inserted with the current node and traverse left or right accordingly.

  • Start at the root node and compare the value of the node to be inserted with the current node.

  • If the value is less than the current node, move to the left child node. If it is greater, move to the right child node.

  • Repeat this process until reaching a leaf node, then insert the new node as the left or right child of the leaf node.

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

Interview Process at Dr. Reddy's

based on 5 interviews in the last 1 year
Interview experience
4.4
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Developer Interview Questions from Similar Companies

4.2
 • 62 Interview Questions
3.5
 • 55 Interview Questions
3.9
 • 30 Interview Questions
4.4
 • 25 Interview Questions
3.6
 • 23 Interview Questions
3.7
 • 14 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
Get AmbitionBox app

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