Filter interviews by
Immutable class is a class whose state cannot be modified after creation.
Make all fields private and final
Do not provide setter methods
Ensure that any mutable objects within the class are also immutable
Lock and sync are both mechanisms used in Java for thread synchronization, but they have different implementations and use cases.
Lock is a low-level synchronization mechanism provided by the java.util.concurrent.locks package, while sync (synchronized keyword) is a high-level synchronization mechanism provided by Java.
Lock provides more flexibility and control over synchronization compared to sync.
Lock can be used to c...
Top trending discussions
I appeared for an interview before Dec 2020.
Round duration - 90 Minutes
Round difficulty - Medium
Coding round was conducted in the morning for 1.5 hours from 10:00 am to 11:30 am. Exam was conducted on HACKEREARTH which is a user-friendly platform with various edge test-cases. Since exam was done through online mode due to COVID-19, therefore camera was on for invigilation. A well working camera and microphone were needed for successful completion of exam.
Ninja is provided with a dictionary of words, WORDS
, and a sentence, SENTENCE
, which consists of words separated by spaces. The goal is to minimize the size of ...
The goal is to minimize the size of a sentence by replacing words with prefixes from a given dictionary.
Iterate through each word in the sentence and check if a prefix exists in the dictionary
Replace the word with the smallest prefix found in the dictionary
Repeat the process for all words in the sentence
Tip 1 : Do not totally depend on past interview questions or as such unless and until you have a strong foundation. Just build the foundation first in starting months.
Tip 2 : More focus should be on problem-solving skills. Develop the skills of using applications.(Eg.: Where one should use Hashmap, Arraylist, etc.)
Tip 3 : Try to solve the problem on your own. Just sink yourself into the question so much that you don't need to look for the solution.(Figure out solution in your own way).
Tip 4 : Regarding project, quantity doesn't matter but what matters the most is you should know about the project from start to end. Able to explain the project clearly. Be ready with technical as well as Behavioral questions.
Tip 1 : Get rid of irrelevant topics or headings.(Eg. Stood 1st in Annual Sack Race Competition.)
Tip 3 : Make sure you don't keep anything which create problem at time of Interview.
Tip 4 : Short and crisp Resume with each spelling checked twice.
Tip 5 : Keep updating your resume based on addition of Internship/Projects, etc.
Tip 6 : Keep the file name(Resume saved as pdf or any format) decent too.
I appeared for an interview before Sep 2020.
Round duration - 90 minutes
Round difficulty - Medium
The coding round consisted of 3 coding questions. 1st question was of 20 marks, 2nd and 3rd of 50 marks.
Given an array 'ARR' consisting of 'N' positive integers, determine the minimum number of operations needed to make all elements of the array equal. You may ...
Determine minimum operations to make all array elements equal using addition, subtraction, multiplication, or division.
Iterate through array to find the minimum and maximum values
Calculate the difference between the maximum and minimum values
Return the difference as the minimum number of operations needed
Given an array of obstacles' coordinates, determine the minimal jump length to reach beyond all obstacles starting from coordinate 0 while avoiding landing on any obstacle...
Find the minimal jump length to bypass all obstacles while avoiding landing on any obstacle.
Iterate through the obstacle coordinates to find the maximum coordinate.
Calculate the minimum jump length needed to bypass all obstacles.
Ensure the jump length consistently avoids all obstacle points.
The final jump can overshoot the line's end point.
You are given an unsorted array/list ‘ARR’ of ‘N’ integers. Your task is to return the length of the longest consecutive sequence.
The consecutive sequence ...
Find the length of the longest consecutive sequence in an unsorted array of integers.
Sort the array to make it easier to identify consecutive sequences.
Use a set to store unique elements and check for consecutive numbers.
Track the length of consecutive sequences and update the maximum length found.
Handle duplicates by counting only one occurrence in the consecutive sequence.
Round duration - 45 minutes
Round difficulty - Easy
Timing: 10:15 - 11:00 am.
The interview was online from home.
Round duration - 45 minutes
Round difficulty - Medium
Timing: 2:15 - 3:00 PM
The interview was online from home.
There were a few audio cuts in the video call but we were able to manage regardless.
Given a string STR
containing characters from [a-z], [A-Z], [0-9], and special characters, determine the reverse of the string.
The input starts with a single i...
Reverse a given string containing characters from [a-z], [A-Z], [0-9], and special characters.
Iterate through the characters of the string in reverse order and append them to a new string.
Use built-in functions like reverse() or StringBuilder in languages like Python or Java for efficient reversal.
Handle special characters and numbers along with alphabets while reversing the string.
Ensure to print each reversed string
Tip 1 : For OOPS, DS and programming, I recommend Codezen, Leetcode, InterviewBit and GeeksforGeeks.
Tip 2 : For OS, DBMS and Computer Network, I recommend GateSmasher, Knowledge Gate and TutorialsPoint.
Tip 3 : For SQL, I recommend W3Schools and GeeksforGeeks.
Tip 4 : Always maintain your cool during Interviews, and answer the questions calmly. If you get stuck in a problem, do not hesitate to ask for hints.
Tip 1: Mention only those projects and internships in your resume that you are comfortable with, that is, you can explain to the interviewee.
Tip 2: Mention only those skills/programming languages in your resume that you are comfortable with, that is, you have proper knowledge of as the interviewee can ask questions from those languages specifically.
Tip 3: Keep your data in your resume honest and accurate.
I applied via Campus Placement
ATM transaction involves multiple background processes including authentication, authorization, and communication with bank servers.
Customer inserts card and enters PIN
ATM authenticates the card and PIN
ATM requests authorization from bank server
Bank server verifies account balance and approves or denies transaction
ATM dispenses cash or completes other requested transaction
ATM updates account balance and sends transacti
Cut cake into 8 pieces using knife 3 times only.
First, cut the cake horizontally into two equal halves.
Then, cut the cake vertically into four equal pieces.
Finally, cut the cake horizontally again into eight equal pieces.
Make sure to use the knife efficiently to minimize the number of cuts.
Practice visualization before making the cuts to avoid mistakes.
The one bird was already dead.
The bird was already dead before the shot was fired.
The bird was injured and unable to fly away with the rest of the birds.
The bird was a decoy bird used for hunting purposes.
The bird was a trained bird used for falconry.
Developed a web-based attendance management system and a mobile app for event management.
Created a database schema and implemented CRUD operations using PHP and MySQL.
Designed the user interface using HTML, CSS, and JavaScript.
Integrated Google Maps API for location tracking in the mobile app.
Implemented push notifications using Firebase Cloud Messaging.
Collaborated with a team of four to complete the projects within t
I applied via Campus Placement
Sample code to settle accounts of 4 persons after a trip
Create a Person class with attributes like name, spentAmount, and remainingAmount
Calculate the total spent amount by all persons
Distribute the total spent amount equally among all persons to settle the accounts
This was a java code interview
I appeared for an interview in Feb 2021.
Round duration - 90 minutes
Round difficulty - Medium
It was an online test round of 90 minutes orgainsed in Hackerearth platform. It consists of 15 mcq questions and 2 coding questions. The level was moderate. Timing of test was in morning and platform was quite good.
Preeti plans to shop for her father's birthday at a store with unlimited quantities of N different items. She has a budget that allows her to buy a maximum of K items. Hel...
Calculate the number of ways Preeti can purchase items within budget, with at least one item quantity differing.
Use dynamic programming to calculate the number of ways to purchase items within budget.
Consider different scenarios where Preeti buys different quantities of each item.
Return the result modulo 10^9 + 7 to handle large answers.
Round duration - 50 minutes
Round difficulty - Medium
Tip 1 : Try to understand basic concepts of all data structures and do coding questions from online sites like Hackerrank, Leetcode etc.
Tip 2 : Prepare basics of DBMS and Operating System. OOPs concept is must .
Tip 3 : Go through all the basics sql queries or must know about any 1 database perfectly.
Tip 1 : Resume should be short and catchy. It should not be more than 1 page.
Tip 2 : Mention atleast 2 projects. Don't put skills you don't know because mostly interviewers will ask questions on resume basis.
I applied via Naukri.com and was interviewed in Mar 2024. There was 1 interview round.
A hashcode method generates a unique integer value for an object based on its properties.
Override the hashCode() method in Java to generate a unique integer value for an object.
Use the properties of the object to calculate the hash code.
Ensure that equal objects have the same hash code.
Medium level questions
based on 1 interview
Interview experience
Assistant Manager
294
salaries
| ₹3.5 L/yr - ₹13.7 L/yr |
Manager
144
salaries
| ₹7.6 L/yr - ₹21 L/yr |
Analyst
130
salaries
| ₹4.5 L/yr - ₹18 L/yr |
Assistant Vice President
108
salaries
| ₹16 L/yr - ₹47 L/yr |
Senior Associate
84
salaries
| ₹4.8 L/yr - ₹20.5 L/yr |
Kotak Mahindra Bank
AU Small Finance Bank
IndusInd Bank
IDFC FIRST Bank