Filter interviews by
Sliding window problem involves finding a subarray of fixed size k with maximum sum.
Use a sliding window approach to iterate through the array and calculate the sum of each subarray of size k.
Keep track of the maximum sum encountered so far.
Move the window by one element at a time and update the sum accordingly.
Example: Given array [1, 3, -1, -3, 5, 3, 6, 7] and k = 3, the subarray with maximum sum is [5, 3, 6] with su
Top trending discussions
I applied via Approached by Company and was interviewed in Oct 2024. There were 4 interview rounds.
2 DSA questions and some MCQ on Java and Spring
A palindromic substring is a string that reads the same forwards and backwards.
Use dynamic programming to find the longest palindromic substring.
Start by considering each character as the center of a potential palindrome.
Expand outwards from each center to check for palindromes of odd and even lengths.
Remove duplicates from a 1D array of strings in place
Iterate through the array and use a HashSet to keep track of unique elements
Replace duplicates with null or an empty string to remove them in place
Search for the minimum element in a rotated sorted array with duplicate elements.
Use binary search to find the minimum element in the rotated sorted array.
Handle the case where duplicate elements are present by adjusting the search conditions.
Consider cases where the array is not rotated or contains only one element.
A singleton class is a class that can only have one instance created throughout the application.
Declare a private static instance variable of the class
Create a private constructor to prevent external instantiation
Provide a public static method to access the instance
I applied via Campus Placement
2 coding questions and a few MCQs
I applied via Approached by Company and was interviewed in Aug 2023. There were 2 interview rounds.
I applied via Campus Placement and was interviewed in Oct 2023. There were 2 interview rounds.
2 coding questions from dsa. one quest was from trees ds
String arrays are immutable because they cannot be changed once created.
Strings in an array cannot be modified individually
Any changes to a string array result in a new array being created
Immutable arrays ensure data integrity and prevent unintended side effects
To create a custom immutable class, use final keyword for class, private final fields, and no setter methods.
Use the final keyword for the class to prevent inheritance
Declare all fields as private and final to prevent modification
Do not provide setter methods for the fields to maintain immutability
Provide getter methods to access the fields
The test was quite simple but the interviewer was not ready to accept the solution. Even with complete dry run and working output he denied the solution giving a very vague reason.
I applied via Job Portal
Basic java question, design questions, 1 data structure question
Spring Actuator provides endpoints to monitor and manage microservices in a Spring Boot application.
Add Spring Boot Actuator dependency in pom.xml
Enable Actuator endpoints in application.properties or application.yml
Access Actuator endpoints like /actuator/health, /actuator/info, etc.
Customize Actuator endpoints using configuration properties
Webflux is a reactive programming framework for building non-blocking, event-driven applications on the JVM.
Webflux is part of the Spring Framework and provides support for reactive programming.
It allows developers to build asynchronous, non-blocking applications that can handle a large number of concurrent connections.
Webflux uses Project Reactor, a reactive library for building reactive applications.
It supports both ...
Store Manager
228
salaries
| ₹2.2 L/yr - ₹10.5 L/yr |
Section Incharge
188
salaries
| ₹2.4 L/yr - ₹5.1 L/yr |
Customer Relationship Executive
148
salaries
| ₹1.5 L/yr - ₹3.6 L/yr |
Cashier
145
salaries
| ₹1.6 L/yr - ₹3.3 L/yr |
Customer Relation Associate
136
salaries
| ₹1.4 L/yr - ₹3 L/yr |
Anokhi Cafe
The Goodearth Company
Jaypore
Nicobar