Zeta
AGS Health Interview Questions and Answers
Q1. Minimum number of towers required such that every house is in the range of at least one tower
The minimum number of towers required to cover all houses.
Iterate through the houses and find the maximum distance between any two adjacent houses.
Divide this maximum distance by the range of each tower to get the minimum number of towers required.
If there is a remainder, add one to the result.
Return the minimum number of towers.
Q2. 1. Design whatsapp 2. Design chess game (intellij java) 3. React native vs native android , 4. Basic hr question
Q3. What happens when we hit google.com in browser , behind the scenes
Q4. Minimum number of deletions to make a sorted sequence
Find minimum deletions to make a sequence sorted.
Count the number of elements that are not in increasing order.
Subtract the count from the length of the sequence to get the minimum deletions.
Use dynamic programming to optimize the solution.
Time complexity: O(nlogn) using binary search.
Q5. Find the maximum number in the subarrays of length k.
Find the maximum number in the subarrays of length k.
Iterate through the array and keep track of the maximum number in each subarray of length k.
Use a sliding window approach to efficiently find the maximum number in each subarray.
Time complexity can be optimized to O(n) using a deque data structure.
Q6. Why recyclerview is performant dns etc.
Q7. Longest Valid Parentheses
Find the length of the longest valid parentheses substring in a given string.
Use a stack to keep track of the indices of opening parentheses.
Iterate through the string and update the maximum length of valid parentheses.
Handle cases where closing parentheses are encountered without a matching opening parentheses.
Q8. Reverse a Linked List
Reverse a linked list by changing the direction of pointers
Start with three pointers: prev, current, next
Iterate through the list, updating pointers to reverse the direction
Update the head of the list to be the last node
Top HR Questions asked in AGS Health
Interview Process at AGS Health
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month