Meta
20+ OkayGo Interview Questions and Answers
Q1. How would you efficiently calculate the sum of such a matrix?
Efficiently calculate the sum of a matrix
Iterate through each element in the matrix and add them to a running total
Use parallel processing or multi-threading to calculate the sum faster
Consider using optimized algorithms like Strassen's algorithm for matrix multiplication
Q2. Return the substring in a main string, which is composition of given string
Find and return all substrings in a main string that match a given string.
Iterate through the main string and check for matches with the given string
Use substring function to extract potential matches
Store all matching substrings in an array and return it
Q3. How would you represent a sparse matrix?
A sparse matrix can be represented using a dictionary of dictionaries or a list of lists.
Use a dictionary of dictionaries where the keys are the row and column indices with non-zero values as values.
Alternatively, use a list of lists where each inner list represents a row with non-zero values and their column indices.
Sparse matrices are efficient for large matrices with mostly zero values.
Example: {0: {1: 5, 3: 7}, 2: {2: 3}} represents a 3x4 matrix with non-zero values at (0...read more
Q4. Design a metrics tracker
A metrics tracker to monitor and analyze key performance indicators
Define the key metrics to track (e.g. user engagement, conversion rates)
Implement a data collection system to gather relevant data
Create visualizations and reports to analyze the metrics
Set up alerts for abnormal metric values
Regularly review and update the metrics based on business goals
Q5. make balanced parenthesis
Use a stack to ensure balanced parenthesis in a string
Iterate through each character in the string
If the character is an opening parenthesis, push it onto the stack
If the character is a closing parenthesis, pop from the stack and check if they match
If at the end the stack is empty, the parenthesis are balanced
Q6. All Palindromic substrings
Find all palindromic substrings in a given string.
Iterate through each character in the string and expand around it to find palindromic substrings.
Store all palindromic substrings in an array of strings.
Q7. Clean maze with Robot
Clean maze using a robot by navigating through paths and avoiding obstacles.
Create a map of the maze with obstacles and paths.
Implement a pathfinding algorithm for the robot to navigate through the maze.
Use sensors or algorithms to detect and avoid obstacles.
Track the robot's progress and clean the maze efficiently.
Q8. Design online coding judge.
Online coding judge to evaluate code submissions and provide feedback.
Create a web application where users can submit code in various programming languages.
Implement a compiler or interpreter to execute the code and check for errors.
Provide feedback on code correctness, efficiency, and style.
Include test cases to verify the code's functionality.
Allow users to view their submission history and track their progress.
Q9. Design live chess game
Design a live chess game
Create a server-side application to handle game logic and communication
Implement a client-side application for players to interact with the game
Use a database to store game state and player information
Implement real-time updates using websockets or similar technology
Design a user-friendly interface for players to make moves and view the board
Q10. what will happen when the browser first visit the facebook.com ( different protocols in diff layers)
When the browser first visits facebook.com, it goes through multiple protocols in different layers.
The browser first resolves the domain name using DNS (Domain Name System).
Then, it establishes a TCP (Transmission Control Protocol) connection with the server.
Next, it performs an SSL/TLS handshake to establish a secure connection.
After that, the browser sends an HTTP (Hypertext Transfer Protocol) request to the server.
The server processes the request and sends back an HTTP res...read more
Q11. Why Meta? What do you know about Meta in AI space?
Meta is a leading company in AI space with a focus on developing innovative technologies and solutions.
Meta (formerly Facebook) is known for its advanced AI research and development.
Meta uses AI for various applications such as content moderation, personalized recommendations, and virtual assistants.
Meta's AI technologies power products like facial recognition, language translation, and image recognition.
Q12. Tell me about a critical program which had multiple issues?
Implemented a critical software upgrade with multiple bugs affecting production.
Identified bugs through thorough testing and analysis.
Collaborated with development team to prioritize and resolve issues.
Implemented temporary workarounds to minimize impact on production.
Conducted post-mortem analysis to prevent similar issues in future upgrades.
Q13. Tell me an example of a program where you failed ?
I failed to implement a preventive maintenance program due to lack of buy-in from the team.
Lack of clear communication about the benefits of the program
Resistance from team members who preferred reactive maintenance
Inadequate training and support for team members to adapt to the new program
Q14. How do you calculate the displacement of a bike with no tools
To calculate the displacement of a bike without tools, measure the distance traveled in one full rotation of the wheel
Measure the circumference of the bike's wheel
Count the number of rotations the wheel makes over a certain distance
Multiply the circumference by the number of rotations to get the displacement
Displacement = Circumference of wheel x Number of rotations
Q15. How would you rate your SQL skills
I would rate my SQL skills as advanced.
Proficient in writing complex SQL queries
Experienced in optimizing database performance
Skilled in data manipulation and analysis using SQL
Familiar with stored procedures and functions
Have worked on large datasets in previous projects
Q16. How would you rate your Python skills
I would rate my Python skills as advanced.
Proficient in data manipulation and analysis using pandas and numpy
Experience with data visualization libraries like matplotlib and seaborn
Familiar with machine learning libraries such as scikit-learn
Comfortable working with APIs and web scraping using requests and BeautifulSoup
Q17. coding assessment of distance
Calculate the distance between two points in a 2D plane.
Use the distance formula: sqrt((x2 - x1)^2 + (y2 - y1)^2)
Ensure input validation for coordinates
Consider edge cases like points being the same or on the same axis
Q18. code assess of measure
Code assessment measures the ability of a software developer to write efficient and effective code.
Code quality and readability are important factors in code assessment.
Efficiency and performance of the code are also key aspects to consider.
Ability to solve complex problems and think critically is evaluated through code assessment.
Knowledge of programming languages, algorithms, and data structures is tested in code assessment.
Examples: writing a sorting algorithm, optimizing ...read more
Q19. Insert a node in a sorted Linked List
Q20. Design a case study
Design a case study on the impact of social media on mental health in teenagers
Identify a sample group of teenagers who use social media regularly
Track their social media usage patterns and behaviors
Conduct surveys or interviews to assess their mental health and well-being
Analyze the data to determine any correlations between social media usage and mental health issues
Draw conclusions and recommendations based on the findings
More about working at Meta
Top HR Questions asked in OkayGo
Interview Process at OkayGo
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month