Add office photos
Employer?
Claim Account for FREE

Freshworks

3.5
based on 695 Reviews
Video summary
Filter interviews by

10+ Adani Group Interview Questions and Answers

Updated 5 Nov 2024
Popular Designations

Q1. Triplets with Given Sum Problem

Given an array or list ARR consisting of N integers, your task is to identify all distinct triplets within the array that sum up to a specified number K.

Explanation:

A triplet i...read more

Ans.

The task is to identify all distinct triplets within an array that sum up to a specified number.

  • Iterate through the array and use nested loops to find all possible triplets.

  • Keep track of the sum of each triplet and compare it with the target sum.

  • Print the triplet if the sum matches the target sum, else print -1.

Add your answer

Q2. K-th Largest Number in a BST

Given a binary search tree (BST) consisting of integers and containing 'N' nodes, your task is to find and return the K-th largest element in this BST.

If there is no K-th largest e...read more

Ans.

Find the K-th largest element in a BST.

  • Perform reverse in-order traversal of the BST to find the K-th largest element.

  • Keep track of the count of visited nodes to determine the K-th largest element.

  • Return -1 if there is no K-th largest element in the BST.

Add your answer

Q3. Count Ways to Reach the N-th Stair Problem Statement

You are provided with a number of stairs, and initially, you are located at the 0th stair. You need to reach the Nth stair, and you can climb one or two step...read more

Ans.

The problem involves counting the number of distinct ways to climb N stairs by taking 1 or 2 steps at a time.

  • Use dynamic programming to solve this problem efficiently.

  • The number of ways to reach the Nth stair is equal to the sum of ways to reach (N-1)th stair and (N-2)th stair.

  • Handle modulo 10^9+7 to avoid overflow issues.

  • Consider base cases for 0th and 1st stair.

  • Optimize the solution by using constant space instead of an array.

Add your answer
Q4. Can you design the Low-Level Design (LLD) and High-Level Design (HLD) for a system like BookMyShow?
Ans.

Designing the Low-Level Design (LLD) and High-Level Design (HLD) for a system like BookMyShow.

  • For HLD, identify main components like user interface, booking system, payment gateway, and database.

  • For LLD, break down each component into detailed modules and their interactions.

  • Consider scalability, security, and performance in both designs.

  • Example: HLD - User selects movie -> Booking system checks availability -> Payment gateway processes transaction.

  • Example: LLD - Booking syste...read more

Add your answer
Discover Adani Group interview dos and don'ts from real experiences
Q5. Can you design a database schema for a support ticketing system, such as Freshdesk?
Ans.

Designing a database schema for a support ticketing system like Freshdesk.

  • Create a 'Tickets' table with fields like ticket ID, subject, description, status, priority, etc.

  • Include a 'Users' table for customer and agent information.

  • Establish a 'Categories' table for ticket categorization.

  • Implement a 'Comments' table to track communication history.

  • Utilize foreign keys to establish relationships between tables.

Add your answer

Q6. How do you build a tiny URL Application?

Ans.

A tiny URL application is built by generating short aliases for long URLs, storing them in a database, and redirecting users to the original URL when the alias is accessed.

  • Generate a unique short alias for each long URL

  • Store the alias and corresponding long URL in a database

  • Implement a redirect mechanism to redirect users from the alias to the original URL

  • Handle edge cases like duplicate URLs, expired aliases, and invalid URLs

Add your answer

Q7. Count pair whose sum is perfect square.

Ans.

Count pairs in an array whose sum is a perfect square.

  • Iterate through the array and calculate the sum of each pair.

  • Check if the sum is a perfect square using a function.

  • Increment a counter if the sum is a perfect square.

  • Return the final count of pairs.

Add your answer

Q8. Immediate higher number to right

Ans.

The immediate higher number to the right of each element in an array

  • Iterate through the array from right to left

  • For each element, compare it with the elements to its right to find the immediate higher number

  • Store the immediate higher number in a new array

Add your answer

Q9. Kth largest number in BST

Ans.

To find the Kth largest number in a Binary Search Tree (BST), we can perform an in-order traversal and keep track of the Kth largest element.

  • Perform an in-order traversal of the BST to get the elements in non-decreasing order.

  • Keep track of the Kth largest element while traversing the BST.

  • Return the Kth largest element once found.

Add your answer

Q10. Implement debounce function

Ans.

Debounce function delays the execution of a function until after a specified amount of time has passed since the last time it was invoked.

  • Create a function that takes a function and a delay time as parameters

  • Use setTimeout to delay the execution of the function

  • Use clearTimeout to reset the timer if the function is invoked again within the delay time

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

Interview Process at Adani Group

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

Top Senior Software Engineer Interview Questions from Similar Companies

3.8
 • 156 Interview Questions
3.5
 • 97 Interview Questions
3.4
 • 66 Interview Questions
3.6
 • 59 Interview Questions
3.7
 • 21 Interview Questions
3.8
 • 11 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