ION Group
10+ Indiana Ophthalmics Interview Questions and Answers
Q1. Trapping Rain Water in 2-D Elevation Map
You're given an M * N matrix where each value represents the height of that cell on a 2-D elevation map. Your task is to determine the total volume of water that can be ...read more
Calculate the total volume of water that can be trapped in a 2-D elevation map after rain.
Iterate over the matrix and find the maximum height on the borders.
Calculate the water trapped at each cell by finding the difference between the cell's height and the minimum of its neighboring maximum heights.
Sum up the trapped water for all cells to get the total volume of water trapped.
Q2. Count Ways to Climb Stairs Problem
Given a staircase with a certain number of steps, you start at the 0th step, and your goal is to reach the Nth step. At every step, you have the option to move either one step...read more
Count the number of distinct ways to climb a staircase with a certain number of steps using either one or two steps at a time.
Use dynamic programming to solve this problem efficiently.
Keep track of the number of ways to reach each step by considering the number of ways to reach the previous two steps.
Return the result modulo 10^9+7 to handle large outputs.
Example: For N=4, the distinct ways to climb are {(0,1,2,3,4)}, {(0,1,2,4)}, {(0,2,3,4)}, {(0,1,3,4)}, and {(0,2,4)} total...read more
Q3. reverse a linked list
Reverse a linked list by changing the direction of pointers
Start with three pointers: current, previous, and next
Iterate through the linked list, updating pointers to reverse the direction
Update the head of the linked list to be the previous node
Q4. What is OOPs? And its properties
OOPs stands for Object-Oriented Programming. It is a programming paradigm based on the concept of objects.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Inheritance: Ability of a class to inherit properties and behavior from another class.
Polymorphism: Ability to present the same interface for different data types.
Abstraction: Hiding the complex implementation details and showing only the necessary features.
Q5. DBMS question - What are joins and what are their types?
Joins are used in DBMS to combine rows from two or more tables based on a related column between them.
Types of joins include INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN.
INNER JOIN returns rows when there is at least one match in both tables.
LEFT JOIN returns all rows from the left table and the matched rows from the right table.
RIGHT JOIN returns all rows from the right table and the matched rows from the left table.
FULL JOIN returns rows when there is a match in one of ...read more
Q6. Pattern based - Three memory chips, each of 1GB. You have to store 3GB of data in these chips in such a way that even if one memory chip is corrupted, no data is lost.
Use RAID 5 to store data across all three memory chips with parity bits for fault tolerance.
Implement RAID 5 to distribute data and parity bits across all three memory chips.
If one memory chip is corrupted, the data can be reconstructed using the parity bits from the other two chips.
Example: Store 1GB of data on each chip and use the remaining space for parity bits to ensure fault tolerance.
The camel can maximize the number of bananas delivered by making multiple trips with a decreasing number of bananas each time.
The camel should start by carrying the maximum number of bananas it can transport.
After each trip, the camel should leave one banana behind and carry the rest to the destination.
This way, the camel can make multiple trips with decreasing numbers of bananas until all bananas are delivered.
Q8. Is there any correlation between algorithms and law?
Algorithms and law can be correlated through the use of algorithms in legal processes and decision-making.
Algorithms can be used in legal research to analyze large amounts of data and identify patterns or trends.
Predictive algorithms can be used in legal cases to assess the likelihood of success or failure.
Algorithmic tools can help in legal document review and contract analysis.
However, there are concerns about bias in algorithms used in law, as they can reflect and perpetua...read more
Q9. DSA question - Get the longest common prefix string from a list of strings
Find the longest common prefix string from a list 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 any string
Return the prefix found so far
Q10. SNAKE AND LADDER PROBLEM
Snake and ladder is a classic board game where players move their tokens based on the outcome of a dice roll.
Players take turns rolling a dice and moving their token along the board.
If a player lands on a ladder, they move up to a higher-numbered square.
If a player lands on a snake, they move down to a lower-numbered square.
The first player to reach the final square wins the game.
Use binary search method to identify contaminated pills in the jar.
Divide the pills into two equal groups and test one group. If contaminated, test each pill individually. If not contaminated, repeat the process with the other group.
Continue dividing and testing until the contaminated pills are identified with the least number of tests.
Example: If there are 100 pills, start by testing 50 pills. If contaminated, test each of the 50 pills individually. If not contaminated, divi...read more
Q12. PUZZLE PROBLEM OF GFG
The puzzle problem of GFG involves solving a challenging puzzle on GeeksforGeeks.
Read the problem statement carefully and understand the requirements.
Break down the problem into smaller subproblems if possible.
Try different approaches and algorithms to solve the puzzle.
Test your solution with different test cases to ensure correctness.
Optimize your solution if possible to improve efficiency.
Measuring blocks puzzle involves arranging blocks of different lengths to form a specific shape or pattern.
Identify the different lengths of the blocks provided.
Determine the shape or pattern that needs to be formed.
Arrange the blocks in the correct order to match the desired shape or pattern.
Ensure that the blocks are aligned properly to create the shape or pattern.
Q14. Insertion a node in linkedlist
To insert a node in a linked list, update pointers of previous and new nodes.
Create a new node with the data to be inserted
Update the next pointer of the new node to point to the next node of the current node
Update the next pointer of the current node to point to the new node
Q15. Difference between MVC and MVVM
MVC is a design pattern that separates an application into Model, View, and Controller components. MVVM is a variation of MVC that adds a ViewModel component.
MVC separates the application into three components: Model (data and business logic), View (user interface), and Controller (handles user input and updates the model and view).
MVVM is a variation of MVC that adds a ViewModel component, which acts as an intermediary between the Model and View.
In MVVM, the ViewModel expose...read more
Q16. Implement linkedlist
Implement a linked list data structure in a programming language
Create a Node class with data and next pointer
Create a LinkedList class with methods like insert, delete, search
Maintain a head pointer to the first node in the list
Top HR Questions asked in Indiana Ophthalmics
Interview Process at Indiana Ophthalmics
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month