Data Engineering Intern
Data Engineering Intern Interview Questions and Answers
Q1. LCA of Three Nodes Problem Statement
You are given a Binary Tree with 'N' nodes where each node contains an integer value. Additionally, you have three integers, 'N1', 'N2', and 'N3'. Your task is to find the L...read more
Find the Lowest Common Ancestor (LCA) of three nodes in a Binary Tree.
Traverse the Binary Tree to find the paths from the root to each of the three nodes.
Compare the paths to find the common ancestor node.
Return the value of the Lowest Common Ancestor node.
Q2. Equilibrium Indices in a Sequence
You are given an array/list named 'SEQUENCE', which consists of 'N' integers. The task is to identify all equilibrium indices in this sequence.
Explanation:
An equilibrium inde...read more
Identify equilibrium indices in a sequence by finding positions where sum of elements before and after is equal.
Iterate through the sequence and calculate prefix sum and suffix sum at each index
Compare prefix sum and suffix sum to find equilibrium indices
Handle edge cases where no equilibrium index exists
Return the list of equilibrium indices
Data Engineering Intern Interview Questions and Answers for Freshers
Q3. Extract Characters at Prime Indices
Given a string 'STR' of length 'N', return a new string containing all characters that are located at prime indices in the original string. Ensure that the order of character...read more
The task is to extract characters at prime indices from a given string and return them in the same order.
Iterate through the string and check if the index is prime.
Use a helper function to determine if a number is prime.
Build the new string by appending characters at prime indices.
Q4. Explain the Concepts of OOPS , abstraction inheritance polymorphism and encapsulation.
OOPS concepts include abstraction, inheritance, polymorphism, and encapsulation.
Abstraction: Hiding implementation details and showing only necessary information.
Inheritance: Creating new classes from existing ones, inheriting properties and methods.
Polymorphism: Using a single method to perform different actions based on the object type.
Encapsulation: Binding data and methods together, protecting data from outside interference.
Interview Questions of Similar Designations
Interview experiences of popular companies
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