A.P.T. Portfolio
Eagle Hitech Interview Questions and Answers
You are given an integer array 'ARR' of size 'N' and an integer 'S'. Your task is to return the list of all pairs of elements such that each sum of elements of each pair equals 'S'.
Note:
Each pair shou...read more
You have been given an array/list ARR consisting of ‘N’ integers. You are also given a positive integer ‘K’.
Your task is to find the lexicographically smallest ARR that can be o...read more
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 return an empty str...read more
You have been given a grid containing some oranges. Each cell of this grid has one of the three integers values:
You are given a binary search tree of integers with 'N' nodes. Your task is to return the K-th largest element of this BST.
If there is no K-th largest element in the BST, return -1.
A bi...read more
You are given an array of pairs of strings 'EQUATIONS', and an array of real numbers 'VALUES'. Each element of the 'EQUATIONS' array denotes a fraction where the first string denotes the numera...read more
Given an array of ‘n’ integers arr. Find the Peak element of the array. The peak element of an array is defined as that element which is greater than both of its neighbours. I.e if arr[i] is th...read more
Q8. How to make a fair game out of an unfair die that shows heads with a prob p
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.
Q9. Design a Time Series Database
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
Interview Process at Eagle Hitech
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month