Filter interviews by
Algo - DS question related to finding the longest substring with non - repeating characters. Friendly interviewer
Program to check if a given number is prime or not.
A prime number is only divisible by 1 and itself.
Loop through numbers from 2 to n/2 and check if n is divisible by any of them.
If n is divisible by any number, it is not prime.
If n is not divisible by any number, it is prime.
Given an array, return a new array where each element is the product of all elements in the original array except the corresponding element.
Create a new array of the same length as the input array
Iterate through the input array and calculate the product of all elements except the current element
Store the product in the corresponding position in the new array
Return the new array
Design a database to store custom fields for a ticket.
Identify the custom fields needed for a ticket
Create a table for each custom field
Link the tables to the main ticket table using foreign keys
Use appropriate data types for each custom field
Consider indexing frequently searched fields
Top trending discussions
I applied via Recruitment Consulltant and was interviewed in Jun 2024. There was 1 interview round.
Polyfill for .reduce & Promise
For .reduce polyfill, create a function that takes an array, a callback function, and an initial value as arguments
Inside the function, loop through the array and apply the callback function to each element, updating the accumulator
For Promise polyfill, create a function that takes a callback function with resolve and reject parameters
Inside the function, call the callback function with re...
Move all zeros to end of array & design Google Photos life application
Iterate through the array and move all zeros to the end
Design a user-friendly interface for Google Photos life application
Implement features like automatic photo backup, organization, and sharing
Utilize machine learning for image recognition and categorization
I applied via Walk-in and was interviewed in Nov 2024. There were 5 interview rounds.
Normal online code / frontend test
Designing and building a platform similar to BookMyShow involves creating a user-friendly interface for booking tickets for various events.
Develop a user-friendly website and mobile app for users to browse and book tickets for movies, concerts, plays, etc.
Implement a secure payment gateway for users to make online transactions.
Integrate a database to store information about events, venues, tickets, and user bookings.
In...
To build a tinyurl-like service, design a system with a URL shortening algorithm, a database to store mappings, and a redirect service.
Use a hashing algorithm to generate short URLs from long URLs (e.g. MD5, SHA-256).
Store the mappings of short URLs to long URLs in a database (e.g. MySQL, Redis).
Implement a redirect service that takes a short URL, looks up the corresponding long URL in the database, and redirects the u...
posted on 30 Nov 2024
Rate limiter is a mechanism to control the rate of requests sent to a server
Implement a sliding window algorithm to track the number of requests within a specific time frame
Set a limit on the number of requests allowed per unit of time
Return an error response when the limit is exceeded
Test cases: 1. Send requests below the limit - should be successful. 2. Send requests above the limit - should receive an error response
posted on 19 Dec 2023
ConcurrentHashMap allows multiple threads to access and modify the map concurrently, while SynchronizedHashMap ensures thread-safety by allowing only one thread to access the map at a time.
ConcurrentHashMap is more efficient in scenarios with high concurrency as it allows concurrent read and write operations.
SynchronizedHashMap is simpler to use and provides thread-safety, but can lead to performance degradation in hig...
Semaphores in Java are used for controlling access to a shared resource. They can be implemented using the java.util.concurrent package.
Use the Semaphore class from the java.util.concurrent package
Create a Semaphore object with an initial number of permits
Use the acquire() method to acquire a permit before accessing the shared resource
Use the release() method to release a permit after accessing the shared resource
Bitmask in Postgresql is used to store and manipulate multiple boolean values within a single integer column.
Bitmask is a technique to represent a set of boolean flags using binary digits.
In Postgresql, the bitwise operators (&, |, ^, ~) can be used to perform operations on bitmasks.
To set a specific flag in a bitmask, use the bitwise OR operator (|).
To check if a flag is set in a bitmask, use the bitwise AND operator ...
Swap characters from uppercase to lowercase and lowercase to uppercase in a given string.
Iterate through each character in the string
Check if the character is uppercase or lowercase
Swap the case of the character using bitwise XOR operation
Build the resulting string with the swapped characters
To create a singleton ensuring reflection does not mess up the implementation, use an enum or a private constructor with a static field.
Use an enum to create a singleton as enums are inherently singletons and cannot be instantiated multiple times.
Alternatively, use a private constructor with a static field to create a singleton.
To prevent reflection from creating multiple instances, throw an exception in the constructo
I was interviewed in Nov 2023.
posted on 11 Dec 2023
I applied via Referral and was interviewed in Jun 2023. There were 5 interview rounds.
I applied via Job Fair
I attended through campus placement.they gave a general topic and ask us to speak
A variable is a storage location in a computer program that holds data and can be referenced and manipulated.
Variables are used to store data in a program and can be of different types such as integers, strings, or arrays.
In HTML, variables are not directly used, but data can be stored in attributes or elements for manipulation.
Coding in an array involves storing multiple values in a single variable, accessed by index
Interview experience
Senior Software Engineer
285
salaries
| ₹10.6 L/yr - ₹36 L/yr |
fresher
216
salaries
| ₹1 L/yr - ₹6 L/yr |
Software Engineer
183
salaries
| ₹5.5 L/yr - ₹16.1 L/yr |
Lead Software Engineer
179
salaries
| ₹17.2 L/yr - ₹50 L/yr |
Product Specialist
111
salaries
| ₹5 L/yr - ₹10.9 L/yr |
Zoho
Salesforce
LTIMindtree
TCS