Add office photos
APT Research Private Limited logo
Engaged Employer

APT Research Private Limited

Verified
3.7
based on 20 Reviews
Filter interviews by
Designation
Fresher

APT Research Private Limited Interview Questions and Answers

Updated 6 Nov 2024

Q1. Lexicographically Smallest Array Problem Statement

You are given an array ARR of 'N' integers and a positive integer 'K'.

Your task is to determine the lexicographically smallest array that can be obtained by p...read more

Ans.

The task is to determine the lexicographically smallest array that can be obtained by performing at most 'K' swaps of consecutive elements.

  • Iterate through the array and swap elements to make the array lexicographically smallest.

  • Keep track of the number of swaps made and stop when the limit 'K' is reached.

  • Use a sorting algorithm to find the lexicographically smallest array after at most 'K' swaps.

Add your answer
right arrow

Q2. Pair Sum Problem Statement

You are given an integer array 'ARR' of size 'N' and an integer 'S'. Your task is to find and return a list of all pairs of elements where each sum of a pair equals 'S'.

Note:

Each pa...read more

Ans.

Given an array and a target sum, find pairs of elements that add up to the target sum.

  • Iterate through the array and for each element, check if the complement (target sum - current element) exists in a hash set.

  • If the complement exists, add the pair to the result list.

  • Sort the result list based on the first element of each pair, and then the second element if the first elements are equal.

Add your answer
right arrow
APT Research Private Limited Interview Questions and Answers for Freshers
illustration image

Q3. Rotting Oranges Problem Statement

You are given a grid containing oranges where each cell of the grid can contain one of the three integer values:

  • 0 - representing an empty cell
  • 1 - representing a fresh orange...read more
Ans.

Find the minimum time required to rot all fresh oranges in a grid.

  • Iterate through the grid to find rotten oranges and their adjacent fresh oranges.

  • Use BFS or DFS to simulate the rotting process and track the time taken.

  • Return the minimum time taken to rot all fresh oranges or -1 if not possible.

Add your answer
right arrow

Q4. 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 binary search tree.

  • Perform an in-order traversal of the BST to get elements in ascending order

  • Return the (N-K)th element from the end of the in-order traversal

  • Handle cases where K is out of bounds or no K-th largest element exists

Add your answer
right arrow
Discover APT Research Private Limited interview dos and don'ts from real experiences

Q5. Longest Common Prefix Problem Statement

You are given an array ‘ARR’ consisting of ‘N’ strings. Your task is to find the longest common prefix among all these strings. If there is no common prefix, you have to ...read more

Ans.

Find the longest common prefix among an array of strings.

  • Iterate through the characters of the first string and compare with corresponding characters of other strings.

  • Stop when a mismatch is found or when reaching the end of the shortest string.

  • Return the prefix found so far as the longest common prefix.

Add your answer
right arrow

Q6. Peak Element Finder

For a given array of integers arr, identify the peak element. A peak element is an element that is greater than its neighboring elements. Specifically, if arr[i] is the peak, then both arr[i...read more

Ans.

Find the peak element in an array of integers.

  • Iterate through the array and check if the current element is greater than its neighbors.

  • Handle edge cases where the first or last element can be a peak.

  • Return the peak element found.

Add your answer
right arrow

Q7. Evaluate Division Problem Statement

Given an array of pairs of strings equations representing a fraction and an array of real numbers values. Each element in equations denotes a fraction with the first string a...read more

Ans.

Evaluate division problem statement with given fractions and values to calculate the value of a given fraction.

  • Use a graph data structure to represent the fractions and values.

  • Perform depth-first search (DFS) to find the value of the given fraction.

  • Multiply the values of the fractions along the path from numerator to denominator to get the final result.

Add your answer
right arrow

Q8. How to make a fair game out of an unfair die that shows heads with a prob p

Ans.

To make a fair game out of an unfair die showing heads with probability p, we can introduce a penalty for rolling heads.

  • Introduce a penalty for rolling heads, such as losing a point or skipping a turn.

  • Adjust the game rules to account for the unfair die, ensuring that the penalty balances out the advantage of rolling heads.

  • Consider incorporating strategic elements or decision-making to mitigate the impact of the unfair die on the game's fairness.

Add your answer
right arrow

Q9. Design a Time Series Database

Ans.

A time series database stores data points with timestamps for efficient retrieval and analysis.

  • Choose a suitable data model for the database

  • Use a time-based partitioning scheme for efficient data retrieval

  • Implement compression techniques to reduce storage requirements

  • Support for querying and analyzing time-based data

  • Ensure data consistency and durability

  • Consider scalability and high availability

  • Examples: InfluxDB, TimescaleDB, OpenTSDB

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

Interview Process at APT Research Private Limited

based on 9 interviews
Interview experience
5.0
Excellent
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

Concentrix Corporation Logo
3.8
 • 405 Interview Questions
Infosys BPM  Logo
3.6
 • 344 Interview Questions
Apollo Hospitals Logo
4.1
 • 278 Interview Questions
Birlasoft Logo
3.6
 • 195 Interview Questions
Zensar Technologies Logo
3.7
 • 180 Interview Questions
Bosch Logo
4.2
 • 151 Interview Questions
View all
Recently Viewed
JOBS
Shri NT Mundada Global View School
No Jobs
SALARIES
K12 Techno Services
SALARIES
K12 Techno Services
SALARIES
APT Research Private Limited
INTERVIEWS
Ola Electric Mobility
No Interviews
INTERVIEWS
K12 Techno Services
No Interviews
SALARIES
Ola Electric Mobility
JOBS
Building Blocks Learning Solution
No Jobs
INTERVIEWS
Joannou & Paraskevaides
No Interviews
INTERVIEWS
K12 Techno Services
No Interviews
Top APT Research Private Limited Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 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