Filter interviews by
Facebook is a leading social media platform with vast user base and cutting-edge technology.
Facebook has over 2.8 billion monthly active users, providing a massive data source for analysis and engineering.
The company has a strong focus on innovation and constantly develops new technologies and tools.
Facebook's data infrastructure is highly advanced, allowing for complex data processing and analysis.
Working at Facebook ...
Spark is a distributed computing framework used for big data processing.
Spark is an open-source project under Apache Software Foundation.
It can process data in real-time and batch mode.
Spark provides APIs for programming in Java, Scala, Python, and R.
It can be used for various big data processing tasks like machine learning, graph processing, and SQL queries.
Spark uses in-memory processing for faster data processing.
Coding questions on SQL - given 2 tables, join and find the results after the join
Top trending discussions
I appeared for an interview in Oct 2016.
I applied via Campus Placement
Boundary traversal of a tree is the process of visiting the nodes on the boundary of a tree in a specific order.
The boundary traversal can be done in three steps: left boundary, leaf nodes, and right boundary.
For the left boundary, start from the root and traverse down the left side of the tree until reaching a leaf node.
For the leaf nodes, perform an inorder traversal to visit all the leaf nodes of the tree.
For the ri...
Find the nearest greater value of a given value in a Binary Search Tree (BST).
Start from the root node and compare the given value with the current node's value.
If the given value is less than the current node's value, move to the left subtree.
If the given value is greater than the current node's value, move to the right subtree.
Keep track of the closest greater value encountered while traversing the tree.
Return the cl...
Given an infinite staircase with a broken kth step, find the maximum height we can reach in n rounds of jumping i steps.
We can start by jumping the maximum number of steps in each round until we reach the broken step.
After reaching the broken step, we can discard the i steps that would land us on the broken step and jump the remaining steps.
We can continue this pattern until we reach the maximum height we can reach wit...
Construct a binary tree of height h and merge bottom nodes to create a cone-like structure.
A binary tree of height h has 2^h - 1 nodes.
Start combining leaf nodes from the bottom level upwards.
Each combination can be visualized as merging two nodes into one.
For example, if h=3, the tree has 7 nodes, and you combine nodes at levels 2 and 1.
The final structure resembles a cone as nodes are merged.
Function to check if a string of parenthesis is balanced
Use a stack to keep track of opening parenthesis
If a closing parenthesis is encountered, pop from stack and check if it matches
If stack is empty and a closing parenthesis is encountered, return False
If all parenthesis are matched and stack is empty, return True
Implement a function to sum two linked lists representing numbers and return the result as a linked list.
Define a ListNode class to represent each node in the linked list.
Traverse both linked lists simultaneously, adding corresponding digits.
Handle carry-over when the sum of two digits exceeds 9.
Create a new linked list to store the result.
Example: For lists 2 -> 4 -> 3 and 5 -> 6 -> 4, the result is 7 ->...
Count the occurrences of words in a paragraph.
Split the paragraph into words using whitespace as a delimiter.
Create a dictionary to store the count of each word.
Iterate through the words and increment the count in the dictionary.
Return the dictionary with the word counts.
Find common elements out of two sorted array
Use two pointers to traverse both arrays simultaneously
Compare elements at each pointer and move the pointer of the smaller element
If elements are equal, add to common elements list and move both pointers
Stop when either pointer reaches end of array
Check if a string of parentheses is valid by ensuring every opening has a corresponding closing parenthesis.
Use a stack to track opening parentheses. Example: '(()' -> push '(', push '(', pop ')' -> stack: ['('].
For each closing parenthesis, check if there's a matching opening. Example: '()[]{}' -> valid, '([)]' -> invalid.
At the end, the stack should be empty for a valid string. Example: '((()))' -> val...
To find anagrams of a given word in a dictionary, use a hash table to store sorted versions of each word as keys and their corresponding original words as values.
Create a hash table to store the anagrams
Iterate through each word in the dictionary
Sort the characters of the word and use it as a key in the hash table
If the key already exists, add the word to the list of values for that key
Print the list of values for the ...
Suggest a data structure for efficient search of a string in 10 files and print line number and file if string appears more than once.
Use a hash table to store the file name and line number of each occurrence of the string.
Iterate through each file and for each line, check if the string is present and update the hash table accordingly.
Print the hash table entries for the string.
Amazon is the right place for me because of its innovative culture, vast resources, and opportunities for growth.
Amazon's innovative culture aligns with my passion for pushing boundaries and finding creative solutions.
The company's vast resources provide the necessary tools and support to develop and deliver high-quality software.
Amazon offers numerous opportunities for growth and career advancement, allowing me to con...
Find the row with the maximum number of zeroes in a sorted binary matrix.
Iterate through each row of the matrix.
Count the number of zeroes in each row.
Keep track of the maximum count and the corresponding row index.
Return the row index with the maximum zeroes.
Example: For matrix [[0,0,1],[0,1,1],[1,1,1]], row 0 has 2 zeroes.
I appeared for an interview in Dec 2020.
Round duration - 60 minutes
Round difficulty - Easy
It was a technical interview round which was online in Amazon chime. The first question was- Tell me about yourself. Then he asked about my technical skills like- in which language I code, what all topics do I know. Then he asked me questions on networking
Given two strings, S
and T
with respective lengths M
and N
, your task is to determine the length of their longest common subsequence.
A subsequence is a seque...
The task is to find the length of the longest common subsequence between two given strings.
Use dynamic programming to solve this problem efficiently.
Create a 2D array to store the lengths of common subsequences of substrings.
Iterate through the strings to fill the array and find the longest common subsequence.
Example: For strings 'abcde' and 'ace', the longest common subsequence is 'ace' with a length of 3.
Round duration - 100 minutes
Round difficulty - Medium
This was the second technical round.
Given a singly linked list of integers, your task is to return the head of the reversed linked list.
Reverse a given singly linked list so that the last element be...
Reverse a singly linked list of integers.
Iterate through the linked list and reverse the pointers to point to the previous node instead of the next node.
Keep track of the current, previous, and next nodes while traversing the list.
Update the head of the linked list to be the last node encountered during traversal.
Given a singly linked list of integers, your task is to return the head of the reversed linked list.
The given linked list is 1 -> 2 -> 3 -&g...
Reverse a singly linked list of integers and return the head of the reversed linked list.
Traverse the linked list and reverse the pointers to point to the previous node instead of the next node
Use three pointers - prev, current, and next to reverse the linked list
Update the head of the reversed linked list to be the last element of the original linked list
Example: Input: 1 -> 2 -> 3 -> 4 -> NULL, Output: 4 ...
Tip 1 : Problem-solving Ability, how to approach a problem, they will tell you to write the logic of the code(most optimized).
Tip 2 : Practice coding from any platforms like leetcode, GFG (solve easy and medium level questions)
Tip 3 : The major shortlisting is done in the first round that is the test(MCQ and Coding) so prepare CSE fundamentals very well (especially networking(all types of protocols like TCP/IP, DHCP, SIP, etc) , JAVA, real applications of data structures, software testing)
Tip 4 : Linux basic commands.
Tip 5 : Mention at least 2 projects which you know very well. Topics like ML, DL make a higher weightage.
Tip 6 : Communications skills should be strong.
Tip 1 : Mention only those skills which you know very well, don't put any false things, they will catch you easily.
Tip 2 : If you have done projects on the skills which you have mentioned makes a higher weightage.
Tip 3 : Certification courses on the latest technology like Big DATA, ML, AI act as bar raiser.
Tip 4 : Number of projects doesn't matter, quality of projects matter (which are build to sole real-life problems).
I applied via Job Portal and was interviewed in Aug 2021. There were 4 interview rounds.
I come from a close-knit family that values education, support, and creativity, which has shaped my personal and professional growth.
Supportive Parents: My parents have always encouraged my interests in technology and problem-solving, fostering my passion for software development.
Siblings: I have a younger sister who is pursuing a career in graphic design, and we often collaborate on projects, blending our skills.
Cultu...
I applied via Recruitment Consultant and was interviewed before Jul 2020. There was 1 interview round.
based on 2 reviews
Rating in categories
Software Engineer
89
salaries
| ₹73 L/yr - ₹120 L/yr |
Data Scientist
30
salaries
| ₹45 L/yr - ₹83.9 L/yr |
Software Developer
25
salaries
| ₹27.8 L/yr - ₹51.5 L/yr |
Senior Software Engineer
21
salaries
| ₹43.1 L/yr - ₹80.2 L/yr |
Program Manager
15
salaries
| ₹32.4 L/yr - ₹53.1 L/yr |
Amazon
Apple
eBay