Big Data Analyst

Big Data Analyst Interview Questions and Answers for Freshers

Updated 21 Dec 2021

Q1. Buy and Sell Stock - III Problem Statement

Given an array prices where the ith element represents the price of a stock on the ith day, your task is to determine the maximum profit that can be achieved at the en...read more

Ans.

Determine the maximum profit that can be achieved by selling stocks with at most two transactions.

  • Iterate through the array and calculate the maximum profit that can be achieved by selling at each day.

  • Keep track of the maximum profit that can be achieved after the first transaction and the maximum profit that can be achieved after the second transaction.

  • Return the maximum profit that can be achieved after the second transaction.

Q2. Next Greater Element Problem Statement

Given a list of integers of size N, your task is to determine the Next Greater Element (NGE) for every element. The Next Greater Element for an element X is the first elem...read more

Ans.

The task is to find the next greater element for each element in a list of integers.

  • Iterate through the list of integers from right to left.

  • Use a stack to keep track of elements whose next greater element is yet to be found.

  • Pop elements from the stack until a greater element is found or the stack is empty.

  • Assign the next greater element to the current element or -1 if no greater element is found.

  • Return the list of next greater elements.

Q3. Pairwise Sum of Hamming Distance

Given an array ARR containing N integers, your task is to calculate the total sum of the Hamming Distance for all possible pairs of elements in the array.

Hamming Distance

The H...read more

Ans.

Calculate the total sum of Hamming Distance for all possible pairs of elements in an array.

  • Iterate through all pairs of elements in the array

  • Calculate the Hamming Distance between each pair of elements

  • Sum up all the calculated Hamming Distances

Q4. Left View of a Binary Tree Problem Statement

Given a binary tree, your task is to print the left view of the tree.

Example:

Input:
The input will be in level order form, with node values separated by a space. U...read more
Ans.

Print the left view of a binary tree given in level order form.

  • Traverse the tree level by level and print the first node of each level

  • Use a queue to keep track of nodes at each level

  • Handle null nodes by using a placeholder value like -1

Big Data Analyst Jobs

Big Data Analyst 5-8 years
Infosys Limited
3.6
Bangalore / Bengaluru
Big Data Analyst 3-5 years
Infosys Limited
3.6
Bangalore / Bengaluru
Big Data Analyst 2-5 years
Adapty Solutions Pvt Ltd
3.7
Bangalore / Bengaluru
Are these interview questions helpful?
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

3.7
 • 5.7k Interviews
3.7
 • 269 Interviews
3.9
 • 140 Interviews
3.3
 • 37 Interviews
4.4
 • 5 Interviews
View all

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

Big Data Analyst Interview Questions
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
65 L+

Reviews

4 L+

Interviews

4 Cr+

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