Filter interviews by
How to identify a element whose left elements are smaller and right elements are greater
Top trending discussions
posted on 4 Feb 2024
I applied via Job Fair
Create a controller, service, and repository to save user details using Spring Data JPA.
Create a UserController class with appropriate mappings for saving user details.
Create a UserService class with a method to save user details.
Create a UserRepository interface that extends JpaRepository to handle database operations.
Implement the saveUserDetails method in the UserService class to call the save method of the UserRepo...
posted on 9 Nov 2024
I applied via LinkedIn and was interviewed in May 2024. There were 3 interview rounds.
Event loop is a mechanism in programming that allows for asynchronous execution of code by continuously checking for and handling events.
Event loop is commonly used in JavaScript to handle asynchronous operations like setTimeout, setInterval, and AJAX requests.
It works by continuously checking the event queue for any pending events, executing them one by one, and then moving on to the next event.
Event loop helps in pre...
The order of output is fs, process, setTimeout, setInterval, promise.
fs module is synchronous and will output first
process is next in line
setTimeout will be executed after process
setInterval will be executed after setTimeout
promise will be executed last
JavaScript is an interpreted language.
JavaScript is an interpreted language, meaning it is executed line by line at runtime.
There is no separate compilation step in JavaScript like in languages that use compilers.
Examples of interpreted languages include Python, Ruby, and PHP.
Output comparison of for loops using var, let, and bind in JavaScript.
Using var: variable is function-scoped, may lead to unexpected behavior in loops.
Using let: variable is block-scoped, recommended for loop iterations.
Using bind: creates a new function with a specified 'this' value and initial arguments.
I work on coding, debugging, testing, and collaborating with team members. Tech stack decisions are based on project requirements, scalability, performance, and team expertise.
Daily tasks include coding, debugging, testing, and collaborating with team members
Tech stack decisions are based on project requirements, scalability, performance, and team expertise
Consider factors like language compatibility, libraries/framewo...
Design a scalable, real-time document sharing app like Google Docs.
Use websockets for real-time collaboration
Implement version control to track changes
Utilize a distributed database for scalability
Include user authentication and access control
Support offline editing with automatic sync
Utilize cloud storage for scalability, implement image compression techniques, and regularly update image processing libraries.
Utilize cloud storage for scalability
Implement image compression techniques
Regularly update image processing libraries
posted on 20 Mar 2024
Template and Reactive Forms in Angular are two ways to handle forms in Angular applications.
Template Forms are based on the traditional HTML forms and are easy to use for simple forms.
Reactive Forms are more flexible and powerful, allowing for complex form validation and dynamic form controls.
Template Forms use two-way data binding, while Reactive Forms use a more reactive approach with observables.
Reactive Forms are r...
Low level design for a chess game including classes, functions, and data structures.
Create classes for pieces (e.g. Pawn, Rook, Bishop) with properties like position and color
Implement functions for moving pieces, checking valid moves, and capturing opponent pieces
Use data structures like 2D arrays to represent the chess board and track piece positions
I applied via Referral and was interviewed in Aug 2024. There was 1 interview round.
Design a Splitwise application for managing shared expenses among friends.
Implement user authentication and authorization for secure access.
Create a user-friendly interface for adding expenses and splitting them among friends.
Develop algorithms for calculating balances and settling debts between users.
Include features for adding comments, attaching receipts, and generating reports.
Consider scalability and performance o...
I applied via Company Website and was interviewed in Dec 2021. There were 4 interview rounds.
Code to find frequency of characters in a given string
Use a hash table to store character frequencies
Iterate through the string and update the hash table accordingly
Print the hash table to display the character frequencies
Code to reverse a linked list
Create three pointers: prev, curr, and next
Initialize prev to null and curr to head
Loop through the list and set next to curr's next node
Set curr's next node to prev
Move prev and curr one node ahead
Return prev as the new head
Code to reverse linked list in size of K
Create a function that takes head of linked list and size K as input
Traverse the linked list in groups of K nodes
Reverse each group of K nodes using iterative or recursive approach
Connect the reversed groups to form the final linked list
Return the new head of the reversed linked list
I applied via Approached by Company and was interviewed in Sep 2023. There were 3 interview rounds.
Replace zeros surrounded by ones with ones in an array of strings
Iterate through each string in the array
Check for zeros surrounded by ones and replace them with ones
Return the modified array of strings
The minimum number of jumps needed to reach the end of an array.
Use dynamic programming to keep track of the minimum jumps needed at each index.
At each index, calculate the maximum reachable index and update the minimum jumps accordingly.
Example: For array [2, 3, 1, 1, 2, 4, 2, 0, 1, 1], the minimum jumps needed is 4.
Design classes for a bidding system with new bid notifications for users who have already bid.
Create a Bid class with attributes like bidder, amount, timestamp, etc.
Create a Notification class with attributes like message, recipient, timestamp, etc.
Create a BiddingSystem class to manage bids and notifications.
Implement a method in BiddingSystem to notify users who have already bid when a new bid is placed.
Consider usin...
I applied via Referral and was interviewed in Aug 2024. There was 1 interview round.
I was asked question on sliding window on finding the largest subarray with all distinct numbers. The interviewer was very helpful.
I applied via Instahyre and was interviewed in Oct 2021. There were 3 interview rounds.
Design a quiz application with HLD, LLD, and scalability.
Define the user flow and features of the application.
Create a high-level design with components and their interactions.
Create a low-level design with detailed modules and their interactions.
Consider scalability by using a distributed architecture and load balancing.
Use a database to store questions, answers, and user data.
Implement security measures to prevent ch
Abstract class is a class with some abstract methods while interface is a collection of abstract methods.
Abstract class can have both abstract and non-abstract methods while interface can only have abstract methods.
Abstract class can have constructors while interface cannot.
Abstract class can have instance variables while interface cannot.
Inheritance is achieved using extends keyword for abstract class and implements k...
based on 1 interview
Interview experience
based on 2 reviews
Rating in categories
Software Engineer
17
salaries
| ₹9 L/yr - ₹19 L/yr |
Principal Software Engineer
6
salaries
| ₹52 L/yr - ₹63 L/yr |
Senior Software Engineer
5
salaries
| ₹17 L/yr - ₹30 L/yr |
Devops Engineer
4
salaries
| ₹3.6 L/yr - ₹13 L/yr |
Softwaretest Engineer
4
salaries
| ₹10 L/yr - ₹27 L/yr |
Udaan
Swiggy
CARS24
BlackBuck