Springworks
91HR Interview Questions and Answers
Q1. Equilibrium Indices in a Sequence
You are given an array/list named 'SEQUENCE', which consists of 'N' integers. The task is to identify all equilibrium indices in this sequence.
Explanation:
An equilibrium inde...read more
The task is to find the equilibrium indices of a given sequence, where the sum of elements at lower indices is equal to the sum of elements at higher indices.
Iterate through the sequence and calculate the total sum of all elements
Initialize a left sum and right sum as 0
For each index, update the left sum and right sum and check if they are equal
If they are equal, add the index to the equilibrium indices
Return the equilibrium indices
Q2. Rearrange Linked List Problem Statement
Given a singly linked list in the form 'L1' -> 'L2' -> 'L3' -> ... 'Ln', your task is to rearrange the nodes to the form 'L1' -> 'Ln' -> 'L2' -> 'Ln-1', etc. You must not...read more
The task is to rearrange the nodes of a singly linked list in a specific order without altering the data of the nodes.
Iterate through the linked list to find the middle node using the slow and fast pointer technique.
Reverse the second half of the linked list.
Merge the first and reversed second half of the linked list alternatively to get the desired order.
Q4. What is object orienteered programming.
Object oriented programming is a programming paradigm based on the concept of objects, which can contain data and code.
Objects are instances of classes, which define the structure and behavior of the objects.
Encapsulation, inheritance, and polymorphism are key principles of object oriented programming.
Example: Java, C++, Python are popular languages that support object oriented programming.
Q5. What do you know about oops
Object-oriented programming paradigm focusing on objects and classes
Encapsulation: Bundling data and methods that operate on the data into a single unit (object)
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
Q6. Tell me about encapsulation
Encapsulation is the concept of bundling data and methods that operate on the data into a single unit.
Encapsulation helps in hiding the internal state of an object and restricting access to it.
It allows for better control over the data by preventing outside interference.
Encapsulation also promotes code reusability and modularity.
Example: In object-oriented programming, classes encapsulate data fields and methods to operate on those fields.
Q7. different Events in java script
Events in JavaScript are actions or occurrences that happen in the browser that the code can respond to.
Events can be triggered by user actions (like clicking a button), browser actions (like page load), or system events (like a timer expiring)
Event listeners are used to listen for and respond to events
Common events include click, mouseover, keydown, submit, etc.
Top HR Questions asked in 91HR
Interview Process at 91HR
Top Software Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month