HashedIn by Deloitte
10+ Al Rass General Hospital Interview Questions and Answers
Q1. Write code to find max length subarray matching the given sum
Code to find max length subarray matching the given sum
Use a sliding window approach to iterate through the array
Keep track of the current sum and the maximum length subarray
If the current sum exceeds the given sum, move the window's left pointer
If the current sum matches the given sum, update the maximum length subarray
Return the maximum length subarray
Q2. Write an SQL query to given an output from given tables
SQL query to retrieve output from given tables
Identify the tables and their relationships
Determine the columns to be selected
Use appropriate join and filter conditions
Group and aggregate data if required
Q3. Write CLI snake and ladders game code
CLI snake and ladders game code
Create a board with 100 cells using a 10x10 array
Define snakes and ladders positions as an array of tuples
Use a loop to alternate player turns and move them based on dice roll
Check for snakes and ladders and update player position accordingly
Print the board after each turn and declare winner when a player reaches cell 100
Q4. Method overloading vs Method overriding
Method overloading is having multiple methods with the same name but different parameters. Method overriding is having a subclass method with the same name and parameters as a superclass method.
Method overloading is used to provide different ways of calling the same method with different parameters.
Method overriding is used to provide a specific implementation of a method in a subclass that is already defined in a superclass.
Method overloading is resolved at compile-time base...read more
You are given an array of integers 'ARR' containing N elements. Each integer is in the range [1, N-1], with exactly one element repeated in the array.
Your task is to find the duplicate e...read more
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
Q7. Count occurence of element in an array
Count occurrence of element in an array of strings
Use a loop to iterate through the array
Use a dictionary to store the count of each element
Increment the count for each element encountered
Q8. System design of snake and ladder
System design for the game of Snake and Ladder
Create a board with 100 cells and mark the positions of snakes and ladders
Implement a player class with a current position on the board
Roll a dice to move the player and check for snakes and ladders
Keep track of player scores and winner at the end of the game
Which frontend technologies you are familiar?
How do you use Jquery to update the element value.
What is the dot selector in css?
What are some of the advantages of Angular over other framework...read more
Q10. Monolith vs Microservices difference? which is better and why?
Monolith is a single, large application while microservices are smaller, independent services. Microservices are better for scalability and flexibility.
Monolith is a single, large application where all components are tightly coupled. Microservices are smaller, independent services that communicate with each other through APIs.
Monoliths are easier to develop and deploy initially but become harder to maintain and scale as they grow. Microservices allow for better scalability an...read more
Q11. How you can handle the pressure
I handle pressure by prioritizing tasks, staying organized, seeking support when needed, and practicing stress-relief techniques.
Prioritize tasks based on deadlines and importance
Stay organized with to-do lists and calendars
Seek support from colleagues or supervisors when feeling overwhelmed
Practice stress-relief techniques such as deep breathing or exercise
Maintain a positive attitude and focus on problem-solving
Q12. Why HashedIn ? How was your interview experience? Have will you handle difference of opinion With a team ? Share an experience where you resolved a critical issue ?
I chose HashedIn for its innovative projects and collaborative work culture.
Innovative projects attracted me to HashedIn
I value the collaborative work culture at HashedIn
I appreciate the opportunities for growth and learning at HashedIn
I was impressed by the team's technical expertise during the interview process
Q13. System design of Jira
Jira is a project management tool used for issue tracking, task management, and agile project management.
Jira allows users to create and track issues, assign tasks, and prioritize work.
It supports agile methodologies like Scrum and Kanban.
Users can customize workflows, create dashboards, and generate reports.
Integration with other tools like Confluence, Bitbucket, and Slack is possible.
Q14. System design + Projects that you worked on
I have experience in designing and implementing scalable systems for various projects.
Designed and implemented a microservices-based architecture for a healthcare platform
Developed a distributed system for real-time data processing using Apache Kafka and Spark
Optimized database schema and queries for a high-traffic e-commerce website
Implemented caching and load balancing strategies for a social media platform
Designed and developed a RESTful API for a mobile application
Design an app like Practo.
Q16. Reverse a linkedin list
Reverse a linked list by changing the pointers direction
Iterate through the linked list and change the direction of pointers
Use three pointers - current, previous, and next to reverse the list
Update the head of the list to the last node after reversing
Q17. Explain closure
Closure is a function that retains access to variables from its parent scope even after the parent function has finished executing.
Closure allows a function to access and manipulate variables from its outer function's scope.
It occurs when a function is defined within another function and the inner function uses variables from the outer function.
Closure helps in creating private variables and functions in JavaScript.
Example: function outerFunction() { let outerVar = 'I am oute...read more
Q18. Kadane's Algorithm
Kadane's Algorithm is used to find the maximum subarray sum in an array.
Iterate through the array and keep track of the maximum sum ending at each index.
If the sum at any index becomes negative, reset the sum to 0.
Return the maximum sum found.
Example: For array [-2, 1, -3, 4, -1, 2, 1, -5, 4], the maximum subarray sum is 6 (from index 3 to 6).
Q19. HLD of lift design
High Level Design (HLD) of a lift includes system architecture, components, interfaces, and interactions.
Identify key components like motor, control panel, doors, and sensors
Define system architecture including how components interact
Specify interfaces for user input, floor selection, and emergency stop
Consider safety features like overload protection and emergency brakes
Top HR Questions asked in Al Rass General Hospital
Interview Process at Al Rass General Hospital
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month