Filter interviews by
A hashmap is a data structure that stores key-value pairs for efficient data retrieval using a hash function.
Uses an array to store data, where each index corresponds to a hash value.
A hash function converts keys into array indices, e.g., hash('key') % array_size.
Handles collisions using methods like chaining (linked lists) or open addressing.
Example: Inserting ('apple', 1) and ('banana', 2) into a hashmap.
Average...
Merging two sorted arrays involves combining them into a single sorted array while maintaining order.
Two-Pointer Technique: Use two pointers to traverse both arrays, comparing elements and adding the smaller one to the result array.
Example: For arrays [1, 3, 5] and [2, 4, 6], start with pointers at 1 and 2, add 1 to result, move pointer of first array.
Handle Remaining Elements: After one array is fully traversed, ...
The four pillars of OOP are encapsulation, inheritance, polymorphism, and abstraction, forming the foundation of object-oriented programming.
Encapsulation: Bundling data and methods that operate on the data within a single unit (class). Example: A class 'Car' with attributes like 'color' and methods like 'drive()'.
Inheritance: Mechanism where a new class inherits properties and behavior from an existing class. Exa...
A flight reservation system allows users to search, book, and manage flight tickets efficiently.
User Registration: Users can create accounts to manage bookings.
Flight Search: Users can search flights by destination, date, and number of passengers.
Booking Process: Users can select flights, enter passenger details, and make payments.
Cancellation and Refund: Users can cancel bookings and request refunds as per polici...
To add a customized object in HashMap, create an instance of the object and use put() method of HashMap.
Create an instance of the customized object
Use put() method of HashMap to add the object with a key
Retrieve the object using get() method by passing the key
Hashmap is a data structure that stores key-value pairs and provides constant time complexity for insertion, deletion, and retrieval.
Hashmap uses a hash function to map keys to their corresponding values in an array.
Collisions can occur when two keys map to the same index, which can be resolved using techniques like chaining or open addressing.
Java's HashMap class is an implementation of the hashmap data structure...
Hacker rank and programming and oops mcq and sql
Hashmap is a data structure that stores key-value pairs and provides constant time complexity for insertion, deletion, and retrieval.
Hashmap uses a hash function to map keys to their corresponding values in an array.
Collisions can occur when two keys map to the same index, which can be resolved using techniques like chaining or open addressing.
Java's HashMap class is an implementation of the hashmap data structure.
Exam...
The four pillars of OOP are encapsulation, inheritance, polymorphism, and abstraction, forming the foundation of object-oriented programming.
Encapsulation: Bundling data and methods that operate on the data within a single unit (class). Example: A class 'Car' with attributes like 'color' and methods like 'drive()'.
Inheritance: Mechanism where a new class inherits properties and behavior from an existing class. Example:...
A flight reservation system allows users to search, book, and manage flight tickets efficiently.
User Registration: Users can create accounts to manage bookings.
Flight Search: Users can search flights by destination, date, and number of passengers.
Booking Process: Users can select flights, enter passenger details, and make payments.
Cancellation and Refund: Users can cancel bookings and request refunds as per policies.
Ad...
I appeared for an interview in Feb 2025, where I was asked the following questions.
Algorithms basic question of array manipulations and strings basics, like find longest substring with even length.
Dsa, java oops was the main focus of the round , and core java knowledge
I applied via Naukri.com and was interviewed in Feb 2024. There was 1 interview round.
Average coding question to convert a number series into camel string
I applied via Approached by Company and was interviewed before Sep 2023. There were 3 interview rounds.
Stacks, Trees, Arrays
I appeared for an interview before Apr 2024, where I was asked the following questions.
A hashmap is a data structure that stores key-value pairs for efficient data retrieval using a hash function.
Uses an array to store data, where each index corresponds to a hash value.
A hash function converts keys into array indices, e.g., hash('key') % array_size.
Handles collisions using methods like chaining (linked lists) or open addressing.
Example: Inserting ('apple', 1) and ('banana', 2) into a hashmap.
Average time...
posted on 7 Jan 2022
I applied via Naukri.com and was interviewed in Dec 2021. There were 5 interview rounds.
Top trending discussions
I applied via Campus Placement and was interviewed before Jun 2020. There were 7 interview rounds.
based on 9 interview experiences
Difficulty level
Duration
5-8 Yrs
Not Disclosed
2-5 Yrs
Not Disclosed
6-15 Yrs
Not Disclosed
Software Engineer
11
salaries
| ₹5.6 L/yr - ₹20 L/yr |
SDE
10
salaries
| ₹12.9 L/yr - ₹22 L/yr |
Senior Software Engineer
9
salaries
| ₹15 L/yr - ₹39.8 L/yr |
Data Engineer
4
salaries
| ₹14 L/yr - ₹20 L/yr |
Software Developer
3
salaries
| ₹13 L/yr - ₹18 L/yr |
TCS
Accenture
Wipro
Cognizant