Meta Coding & Algorithms Interview Questions
Preparing for Meta Coding & Algorithms interview questions requires focusing on algorithmic problem solving, writing production-minded code, and communicating tradeoffs under time
Answer four array/time/grid query questions
You are given four independent coding questions. Q1) Best value-for-money item You are given two arrays of equal length prices and ratings (each ratin...
Solve SQL and Python coding tasks
You are given a small library system with the following relational schema and several Python data-processing tasks. Answer the SQL questions and imple...
Validate parentheses and find k-th largest
Problem A — Validate parentheses Given a string s containing only the characters '(', ')', '[', ']', '{', '}', determine whether the input string is v...
Write SQL for car rental utilization by city
SQL / Data Query Prompt (Car Rental) You are given four tables: user - user_id location - location_id - city car - car_id - car_size (e.g., compact, m...
Find closest BST value and remove parentheses
Question LeetCode 270. Closest Binary Search Tree Value LeetCode 1249. Minimum Remove to Make Valid Parentheses (follow-up: achieve without using a st...
Select words to maximize unique characters
Problem You are given an array of strings words. You may choose any subset of these strings and concatenate the chosen strings in any order. Your goal...
Solve tree leaf sum and target indices search
Question LeetCode 129. Sum Root to Leaf Numbers LeetCode 2089. Find Target Indices After Sorting Array (array already sorted; require O(log n) time) h...
Solve shipping capacity and expression insertion
Problem A: Minimum shipping capacity You are given an array weights where weights[i] is the weight of the i-th package. Packages must be shipped in or...
Implement string and basic ML algorithms
You are given three implementation tasks that mix algorithms and basic machine learning models. --- Task 1: Longest substring with all distinct charac...
Answer four string/array/battery coding questions
You are given four independent coding questions. Problem A — Uppercase vs lowercase count difference Given a string s (ASCII), count how many characte...
Solve island and frequency problems
Question LeetCode 200. Number of Islands – given a 2D grid, count the number of connected islands of '1's using DFS/BFS/Union-Find. LeetCode 695. Max ...
Compute nested depth sum and grid distance
Problem A: Weighted sum of integers in a nested list You are given a nested list structure that may contain integers or other nested lists. Define the...
Compute capacities after site closures
You are given a nested dictionary redistribution where redistribution[closed_site][dest_site] equals the additional capacity required at dest_site if ...
Solve four algorithmic library problems
Solve the following coding tasks: 1) Maximum Points from Different Categories: Given an array of items (category, points) and an integer k, choose exa...
Implement list cloning and k-frequency finder
You are given two separate coding tasks. --- Problem 1: Deep copy a linked list with extra pointers You are given the head of a singly linked list. Ea...
Validate alternating checkout/return logs
Given a chronological list of events logs of the form (timestamp, book_id, is_checkout) where is_checkout is True for a checkout and False for a retur...
Validate near-palindrome and course prerequisite feasibility
Coding round (40 minutes): two problems You do not need to run code, but you should: - Explain your approach clearly. - Walk through the logic on exam...
Solve linked list, tree, and grid problems
Problem A — Find cycle entry in a singly linked list You are given the head of a singly linked list. The list may contain a cycle. - Return the node w...
Implement weighted random city and sparse dot product
Question 1: Weighted random city picker You are given a mapping from city → population (all populations are positive integers). Implement a random gen...
Check carpool trip feasibility
You are given a list of trips where each trip i is (passengers_i, start_i, end_i) with start_i < end_i on a one-dimensional route. A single vehicle wi...