Filter interviews by
I applied via Company Website and was interviewed before Mar 2023. There were 3 interview rounds.
The minimum number of swaps required to sort a list is equal to the number of inversions in the list.
Count the number of inversions in the list to determine the minimum number of swaps needed to sort it.
An inversion occurs when a larger element appears before a smaller element in the list.
For example, in the list [4, 3, 2, 1], there are 6 inversions (4,3), (4,2), (4,1), (3,2), (3,1), (2,1), so at least 6 swaps are need
A URL shortener is a tool that takes a long URL and generates a shorter, unique link that redirects to the original URL.
Generate a unique key for each long URL
Store the mapping of long URL to unique key in a database
Create a redirect service that takes the unique key and redirects to the original URL
Top trending discussions
I applied via Campus Placement and was interviewed in Oct 2024. There were 3 interview rounds.
Test contains 26 questions for me 13 are java based 13 are c++ based
Indexing in DBMS is a technique to improve the performance of queries by creating a data structure that allows for faster retrieval of data.
Indexes are created on columns in a database table to speed up the retrieval of rows that match a certain condition.
Types of indexes include clustered, non-clustered, unique, and composite indexes.
Examples of indexing techniques include B-tree, hash, and bitmap indexes.
Indexing can...
Check if two strings are anagrams by comparing the sorted characters in each string.
Sort the characters in both strings and compare if they are equal.
Ignore spaces and punctuation when comparing the strings.
Example: 'listen' and 'silent' are anagrams.
Example: 'hello' and 'world' are not anagrams.
Use a stack to simulate the recursive inorder traversal process
Create an empty stack to store nodes
Start with the root node and push it onto the stack
While the stack is not empty, keep traversing left and pushing nodes onto the stack
Once you reach a leaf node, pop it from the stack, print its value, and move to its right child
Repeat the process until all nodes have been visited
To make a class final, use the 'final' keyword in the class declaration.
Use the 'final' keyword before the 'class' keyword in the class declaration
A final class cannot be subclassed or extended
Final classes are often used for utility classes or classes that should not be modified
I applied via Naukri.com and was interviewed in Oct 2024. There were 2 interview rounds.
Online test on hacker rank . difficult level
Assignmemt on sorting array
I applied via Referral and was interviewed in Oct 2023. There were 2 interview rounds.
Asked me DSA Question of a graph.Island Count
The question is not clear and seems to be a typo. It may be asking about a graph being bipartite.
Ask for clarification on the question
Explain what a bipartite graph is
Provide examples of bipartite and non-bipartite graphs
Closure is a function that captures the environment in which it was created, allowing it to access variables from that environment even after the function has finished executing.
Closure allows a function to access variables from its outer scope even after the function has finished executing.
It is created when a function is defined within another function and the inner function references variables from the outer functi...
I applied via LinkedIn and was interviewed in Aug 2024. There were 3 interview rounds.
It was an online assessment. Some coding questions. Some cs fundamental mcqs. SQL query, Rest Api question.
An assignment to create a game using nodejs/ go lang/ java.
It was a medium-level DSA round
This was also a DSA round
This again a DSA round
I applied via LinkedIn and was interviewed in Jul 2024. There was 1 interview round.
I want to join Facebook because of its innovative technology, global impact, and opportunities for growth.
Innovative technology: Facebook is known for its cutting-edge technology and constant innovation.
Global impact: Working at Facebook would allow me to contribute to a platform that connects billions of people worldwide.
Opportunities for growth: Facebook offers a dynamic and fast-paced work environment with ample opp...
I appreciate the personalized news feed feature on Facebook.
Personalized news feed shows content based on user interests
Helps users stay updated on relevant information
Allows users to engage with content they are interested in
React javascript coding test
Senior Software Engineer
13
salaries
| ₹34 L/yr - ₹60 L/yr |
Software Engineer
5
salaries
| ₹6.5 L/yr - ₹18 L/yr |
Sales Executive
5
salaries
| ₹1.5 L/yr - ₹2.2 L/yr |
Store Manager
5
salaries
| ₹3 L/yr - ₹6 L/yr |
System Software Engineer 2
4
salaries
| ₹25.7 L/yr - ₹29.2 L/yr |
Apple
Samsung
Nokia
Huawei Technologies