Skip to content

Latest commit

 

History

History
264 lines (258 loc) · 39.7 KB

algorithm.md

File metadata and controls

264 lines (258 loc) · 39.7 KB

Algorithm interview & OA questions

2,427 questions in the Algorithm format. Open one to practise it on TrueInterview.

← All formats · ← Question bank

Page 1 of 10 · Page 2 →

Company Question Difficulty Reported
Ramp Spreadsheet String Concatenation with Dependent Cells Hard 🆕 Sep 18, 2026
Citadel Design a Top-Ten Trade Query with Exact Amounts Medium 🆕 Sep 18, 2026
Houzz Convert a Column Number to an Excel-Style Label Easy 🆕 Sep 18, 2026
Instacart Calculate Inventory Purchases with Buy-X-Get-Y-Free Coupons Medium 🆕 Sep 18, 2026
Sig Rotate a Square Matrix Clockwise While Both Diagonals Stay Fixed Hard 🆕 Sep 17, 2026
OpenAI Order Tasks with Dependencies Using a Deterministic Topological Sort Medium 🆕 Sep 17, 2026
Sig Count Equal-Difference Triples After Each Add or Remove-All Operation Hard 🆕 Sep 17, 2026
Ziphq Find the Guaranteed Capture Time in a Turn-Based Graph Game Hard 🆕 Sep 17, 2026
Google Repeatedly Delete Leaves Matching a Target Value From a Binary Tree Medium 🆕 Sep 16, 2026
Capital One Team Ranking Based on Scores and Goal Difference Medium 🆕 Sep 16, 2026
Together AI Split a Chunked Text Stream into Line-Balanced Parts Medium 🆕 Sep 15, 2026
xAI Load and Display a React List with useEffect Medium 🆕 Sep 15, 2026
xAI Implement an Asynchronous React Typeahead Medium 🆕 Sep 15, 2026
Cohere Implement a Card-Details Form with Dependent Validation Medium 🆕 Sep 15, 2026
Amazon Order Dependent Tasks and Identify Work to Rerun Medium 🆕 Sep 14, 2026
Amazon Merge Sorted Event Streams Through an Iterator Medium 🆕 Sep 14, 2026
AMD Find the Largest K Elements with Partitioning Medium 🆕 Sep 14, 2026
IBM VM Rental Revenue from Changing Stock Medium 🆕 Sep 14, 2026
Rippling Bill Deliveries with Historical Rates and Deferred Rounding Hard 🆕 Sep 13, 2026
Upstart Check Whether Two Words Are Case-Insensitive Anagrams Easy 🆕 Sep 12, 2026
Oracle Count Islands and Return the Largest Island Size Medium 🆕 Sep 11, 2026
Stripe Financial Account Ledger Medium 🆕 Sep 11, 2026
Stripe Hierarchical CSV Task / Subtask Formatter Medium 🆕 Sep 11, 2026
Airwallex Merge Hundreds of Paginated Sorted Sources into One Deduplicated Record Stream Hard 🆕 Sep 10, 2026
DoorDash Build an Order-Exception Microservice with Explicit Refund Policies Hard 🆕 Sep 10, 2026
Wayfair Simulate and Compare Multi-Armed Bandit Strategies Medium 🆕 Sep 10, 2026
Microsoft Find Unique Zero-Sum Triplets Medium 🆕 Sep 10, 2026
Microsoft Find the First Value Repeated During a Left-to-Right Scan Easy 🆕 Sep 10, 2026
Google Temperature Monitoring Data Structure Medium 🆕 Sep 10, 2026
Google Robot Status Message Deduplication Medium 🆕 Sep 10, 2026
Wayfair Maximize the Product of Pair Distance and Minimum Value Hard 🆕 Sep 09, 2026
Uber Sort a Matrix into Snake Order Using Adjacent Swaps Medium 🆕 Sep 09, 2026
Snapchat Render an Organization Chart and Find Skip-Level Pairs Medium 🆕 Sep 09, 2026
Uber Answer Repeated Shortest Increasing-Path Queries Hard 🆕 Sep 09, 2026
Roblox File Chunk Range Tracking Medium 🆕 Sep 09, 2026
Microsoft Delete and Earn (LC 740) Medium 🆕 Sep 09, 2026
Google Minimum-Cost Tree Disconnection Hard 🆕 Sep 09, 2026
OpenAI Debug a Transformer Implementation and Implement a KV Cache for Decoding Hard 🆕 Sep 08, 2026
Capital One Find Repeated-Value Patterns in a Matrix Medium 🆕 Sep 07, 2026
Instacart Calculate a Basket Total from Delimited Product Records Easy 🆕 Sep 06, 2026
Databricks Tic-Tac-Toe Against a Deterministic Automatic Opponent Medium 🆕 Sep 06, 2026
Databricks Referral Credit Tracker with Indirect Referrals Hard 🆕 Sep 06, 2026
Snowflake Find the Minimum Fleet for a Bus Timetable Medium 🆕 Sep 05, 2026
Snowflake Find the Minimum Bus Fleet with Station Constraints Hard 🆕 Sep 05, 2026
Amazon Timestamped Key-Value Store Easy 🆕 Sep 05, 2026
Robinhood Define and Calculate Employee Referral Counts Hard 🆕 Sep 04, 2026
Verkada Validate a Partially Filled Sudoku Board Medium 🆕 Sep 04, 2026
Siemens Batch and Pad Variable-Length Vectors with Optional Final-Batch Dropping Medium 🆕 Sep 04, 2026
LinkedIn Nested List Weight Sum II (LC 364) Medium 🆕 Sep 04, 2026
Stripe Subtract Blocked Periods from Allowed Deployment Windows Medium 🆕 Sep 04, 2026
ByteDance Restore IP Addresses Medium 🆕 Sep 04, 2026
Mercor Review an Asynchronous Cache for Races, Memory Growth, and Thread Safety Hard 🆕 Sep 03, 2026
Google Evolve Duplicate Detection for Sliding Windows and Read-Heavy Queries Hard 🆕 Sep 03, 2026
Snowflake Compute Effective Letter Permissions in a DAG Hard 🆕 Sep 03, 2026
Airwallex Largest Square of Ones Medium Sep 02, 2026
Amazon Generalize Dictionary Merging Medium Sep 02, 2026
Microsoft Detect Repeated Patterns in a String Sequence Medium Sep 02, 2026
Amazon Binary Array Rearrangement Medium Sep 02, 2026
Google Next-Word Predictor Medium Sep 02, 2026
Pinterest Reason About Nested JSON Schema Validation Hard Sep 01, 2026
DoorDash Debug the Last-Element Random Allocation Case Medium Sep 01, 2026
Harvey Find Duplicate Files While Handling Symbolic-Link Cycles Hard Sep 01, 2026
Harvey Allocate Unique File Names in an In-Memory Vault Medium Sep 01, 2026
Amazon NumPy Mean and Variance with MLE Follow-Up Medium Sep 01, 2026
Amazon Maximum Frequency Stack Hard Sep 01, 2026
Amazon Top K Frequent Elements (LC 347) with a Follow-Up Variant Hard Sep 01, 2026
Mercor Shortest Grid Path with Obstacle Eliminations Hard Aug 30, 2026
Google Find the Longest Continuous Increasing Subsequence Easy Aug 30, 2026
Microsoft Recover Sorted Digits from Scrambled English Number Words Medium Aug 30, 2026
Microsoft Parse a Signed Integer in an Arbitrary Base Medium Aug 30, 2026
Microsoft Keep Stable Unique Column Names Across Schema Changes Hard Aug 30, 2026
Microsoft Convert a Hexadecimal Address to Dotted IPv4 Medium Aug 30, 2026
Amazon Delivery-Center Grid — Minimum Inconvenience Hard Aug 30, 2026
Squarepoint Count Files Safely from Bash Medium Aug 29, 2026
Squarepoint / Uber Shortest Subarray with at Least K Distinct Values Medium Aug 29, 2026
Squarepoint Find Values Whose Removal Minimizes Pairing Cost Hard Aug 29, 2026
Snapchat Find the Smallest Range Covering K Sorted Lists Hard Aug 28, 2026
Oracle Accounts Merge (LC 721) Hard Aug 28, 2026
Palantir Stack Item and Category Coupons with an Eighty-Percent Cap Hard Aug 27, 2026
Palantir Optimize Coupon Selection Under a Twenty-Point Budget Hard Aug 27, 2026
Yelp Return Integers in Descending Ranked Order Easy Aug 27, 2026
Waymo Minimize Total Grid Distance to Every Building Hard Aug 27, 2026
Palantir Apply Item Coupons with Exact Per-Item Cent Rounding Medium Aug 27, 2026
LinkedIn Merge N-ary Trees by Node Key Medium Aug 27, 2026
IBM Minimum Replacements for Adjacent Duplicate Characters Medium Aug 27, 2026
Amazon / Meta Sort Elements by Frequency Easy Aug 27, 2026
Akuna Capital Find the Maximum Value in a Binary Tree Recursively Easy Aug 26, 2026
Pinterest Minimum Transfers Between Pin Boards Hard Aug 26, 2026
Atlassian Highlight the Shortest Unique Substring in Each Label Hard Aug 26, 2026
Pinterest Tree-Encoded Subtree Deletion and Stable Compaction Hard Aug 26, 2026
Apple Sparse Matrix Multiplication (LC 311) Medium Aug 26, 2026
Meta Execute Dependency-Constrained Work at Scale Hard Aug 25, 2026
Stripe Parse and Format Arbitrarily Nested Tasks from CSV Hard Aug 25, 2026
Microsoft Maximize Points by Deleting Values and Their Neighbors Medium Aug 25, 2026
Apple Choose File Storage Tiers Using Access Predictions Hard Aug 24, 2026
Imc Choose Between Two Machines and Allocate Work from Performance Curves Hard Aug 24, 2026
LinkedIn Logistic Regression Debugging Hard Aug 24, 2026
Salesforce Minimum One-Character Word Transformations Hard Aug 24, 2026
Salesforce Find the Celebrity Medium Aug 24, 2026
Stripe Deployment Window Scheduler Hard Aug 24, 2026
Amazon Package Weight Rearrangement Medium Aug 24, 2026
ByteDance Trace and Debug Agent Tool-Call Failures Hard Aug 23, 2026
ByteDance Enumerate All Simple Directed Paths Medium Aug 23, 2026
ByteDance Enumerate All Simple Directed Cycles Hard Aug 23, 2026
Amazon Format a Forest of Nested Comments Hard Aug 22, 2026
Pinduoduo Count Longest Substrings After Character Replacements Medium Aug 22, 2026
Amazon Numbered Buttons with Data Popovers Medium Aug 22, 2026
Amazon Print Hierarchical Comments Medium Aug 22, 2026
Amazon Package Tracking & Status Aggregator Engine Easy Aug 21, 2026
Amazon Minimum-Point Redemption Across Programs Hard Aug 21, 2026
ByteDance / Ebay / NVIDIA Search in Rotated Sorted Array Medium Aug 21, 2026
Okta Evaluate Role-Based Access with Deny Precedence Medium Aug 20, 2026
ByteDance Timestamped Task Scheduler Medium Aug 20, 2026
Amazon Validate Properly Nested Brackets Medium Aug 19, 2026
Amazon Repeat Customer Visits Easy Aug 19, 2026
Google Dependency-Safe Deletion Order Hard Aug 18, 2026
LinkedIn Robot Navigation in an Unknown Grid Hard Aug 18, 2026
Rippling Propagate Task Filtering Through Ancestors Hard Aug 17, 2026
Roblox Piano Keys: Vanilla UI Interaction Easy Aug 17, 2026
Amazon / ByteDance Create Binary Tree from Descriptions (LC 2196) Medium Aug 17, 2026
ByteDance Stickers to Spell Word (LeetCode 691) Hard Aug 17, 2026
ByteDance Pythagorean Triple in an Integer Array Medium Aug 17, 2026
Sig Count Grid Paths with No Three Equal Moves Hard Aug 16, 2026
Squarepoint Concatenate Two C++ Index Sequences at Compile Time Medium Aug 16, 2026
Squarepoint Find a Target Sum Using Two Sorted Arrays Medium Aug 16, 2026
LinkedIn Count Distinct Values in a Massive Sorted Array Medium Aug 16, 2026
LinkedIn Find K Closest Elements in a Sorted Array (LC 658) Medium Aug 16, 2026
Salesforce Valid Word Abbreviation (LeetCode 408) with Follow-Up Variant Medium Aug 16, 2026
Salesforce Lowest Common Ancestor with Parent Pointers (LeetCode 1650) Medium Aug 16, 2026
Salesforce / Amazon Kth Smallest in a BST (LeetCode 230) with Follow-Ups Hard Aug 16, 2026
DoorDash Minimum Parenthesis Deletions Easy Aug 16, 2026
DoorDash First Unique Restaurant in a Stream Medium Aug 16, 2026
Apple Copy List with Random Pointer (LC 138) Medium Aug 16, 2026
DoorDash Minimum Dasher Processing Speed Medium Aug 16, 2026
Uber K Closest Points Medium Aug 16, 2026
Microsoft / Pinduoduo Spiral Matrix (LC 54) + Follow-Ups Medium Aug 16, 2026
Microsoft Palindrome Linked List (LC 234) + Engineering Follow-Up Medium Aug 16, 2026
Google Cutting Ribbons (LC 1891) Medium Aug 16, 2026
Amazon Asteroid Collision (LC 735) Medium Aug 16, 2026
Google Nested List Weight Sum (LC 339) with Follow-Ups Medium Aug 16, 2026
Microsoft / LinkedIn Binary Tree Zigzag Level Order Traversal (LC 103) Medium Aug 16, 2026
Meta Sum Root-to-Leaf Numbers Medium Aug 16, 2026
OpenAI Simulate Infection Spread with Immunity and Recovery Hard Aug 15, 2026
ByteDance Infer an Alien Alphabet from Sorted Words Hard Aug 15, 2026
C3 AI Find the Intersection of Two Linked Chains Medium Aug 15, 2026
Walmart Labs Count Months Whose First Day Is Sunday Medium Aug 15, 2026
Snowflake React / TypeScript Kanban Board Medium Aug 15, 2026
Citadel Task Dependency Ordering Medium Aug 15, 2026
Microsoft Lowest Common Ancestor (LC 235) with a Follow-Up Variant Medium Aug 15, 2026
Amazon Bootstrap Mean & Confidence Interval Medium Aug 14, 2026
Amazon Out-of-Order Package Receiver Medium Aug 14, 2026
Amazon Package Dependency Installation & Build Order Medium Aug 14, 2026
Amazon Group Anagrams (LC 49) Medium Aug 14, 2026
Google Target Expressions from Ordered Digits Hard Aug 13, 2026
ByteDance / Bobyard Build a Nested Comment Tree from Flat Records Medium Aug 13, 2026
Roblox Distinct Cyclic Number Pairs Medium Aug 12, 2026
Affirm Find Redeemable Offers Hard Aug 12, 2026
Figma Sort Documents on a 2D Plane Medium Aug 12, 2026
Google Progressive Array Partitioning Hard Aug 11, 2026
Microsoft Minimum Fuel Cost Across a Road Network Hard Aug 11, 2026
Oracle Two-Value Exchange Warm-Up Easy Aug 10, 2026
Oracle Run-Length String Compression Easy Aug 10, 2026
Uber Minesweeper (LC 529) Medium Aug 10, 2026
Harvey Citation Highlighting Medium Aug 09, 2026
Affirm Aggregate Recent Transactions Medium Aug 07, 2026
Citadel SRE Python Fundamentals — Five-Question Set Easy Aug 05, 2026
Apple Top K Closest Pairs in a Sorted Array Hard Aug 05, 2026
Figma / Bloomberg / Boston Consulting Group Nested String with Brackets Parsing Hard Aug 04, 2026
Gusto Calculate Tax from Progressive Brackets Medium Aug 01, 2026
Affirm Live Fraud Detector Easy Aug 01, 2026
OpenAI Sharded Matmul and Backprop Debugging Hard Jul 31, 2026
Pinduoduo Spiral Matrix Generation Medium Jul 30, 2026
ByteDance Bounded Number Construction from Allowed Digits Hard Jul 29, 2026
Point72 Price Percentile Cutoff Medium Jul 29, 2026
Point72 Optimal Stock Price Subsequence Hard Jul 29, 2026
Point72 League Earnings Easy Jul 29, 2026
Point72 Count Maximum Borrowing Days Hard Jul 29, 2026
Point72 Coins and Energy Hard Jul 29, 2026
Point72 / Akuna Capital / Google Array Frequency Sort Easy Jul 29, 2026
Microsoft / Amazon / Apple / ByteDance / LinkedIn / Meta / Microsoft AI / Two Sigma / WeRide Top K Largest Elements Medium Jul 29, 2026
Point72 Bank Transaction Mining Easy Jul 29, 2026
Lyft Job Scheduler Hard Jul 29, 2026
Microsoft AI / Microsoft Beam Search Decoding Hard Jul 29, 2026
Apple Insert Interval (LC 57) Medium Jul 28, 2026
Citadel Real-Time Trading Event Feed Dashboard (React) Medium Jul 27, 2026
Apple Alias Group Mapping Medium Jul 27, 2026
Salesforce Optimal Account Balancing (LeetCode 465) Hard Jul 25, 2026
Salesforce Delete One Character Type, Minimize Unique-Character Segments Medium Jul 25, 2026
Google Batch and Streaming Log Deduplication Hard Jul 23, 2026
Amazon Word Segmentation with a Dictionary Helper Medium Jul 22, 2026
Amazon Fulfillment-Center Inventory Transfer Medium Jul 22, 2026
Amazon Handwrite Sigmoid, Softmax, and Attention Medium Jul 20, 2026
Google Minimum Direction Violations in a Directed Graph Hard Jul 19, 2026
Capital One W-D-L Outcome Reordering Easy Jul 19, 2026
Capital One Outside-In String Reordering Easy Jul 19, 2026
Salesforce Maximal Rectangle (LeetCode 85) Hard Jul 17, 2026
Salesforce Maximal Square (LeetCode 221) Medium Jul 17, 2026
Pinduoduo Count Longest Increasing Subsequences Hard Jul 17, 2026
OpenAI Maximum Grid Jumping Path Hard Jul 16, 2026
Vanta Task Dependency Resolution (Topological Sort) Medium Jul 16, 2026
Vanta Implement uniq — Unique Lines in a File Medium Jul 16, 2026
Amazon Edit Distance (LC 72) with a Follow-Up Variant Hard Jul 14, 2026
Google Count Word Decompositions into Chemical Element Symbols Medium Jul 14, 2026
Amazon Best Time to Buy & Sell Stock — Merged Variants Hard Jul 10, 2026
Figma Resize Stacked Rectangles — Distribute Height Medium Jul 09, 2026
Bloomberg Detect Duplicate Items Within a 60-Second Sliding Window Medium Jul 09, 2026
Waymo Build an Arithmetic Expression to Reach a Target Hard Jul 09, 2026
Walmart Labs Minimum Talent-Complete Team from Every Start Medium Jul 07, 2026
Walmart Labs Merge Strings Alternately Easy Jul 07, 2026
Waymo Race Car: Minimum Instructions to Reach a Target Hard Jul 06, 2026
Goldman Sachs Highest Average Score Per Person Medium Jul 06, 2026
SoFi Reachable Nodes in a Directed Graph Easy Jul 04, 2026
Waymo Implement Max Pooling with Argmax Coordinates Medium Jul 02, 2026
Amazon Basic Calculator with Postfix Notation Medium Jul 02, 2026
Amazon Closest Version Date Medium Jul 02, 2026
Google Top-K Frequent in Large Logs Medium Jul 02, 2026
Amazon Maximum Concurrent Processes from Intervals Medium Jul 02, 2026
Google Piano Hand Movement Grouping Medium Jul 01, 2026
Amazon Service Shutdown / Topological Sort Medium Jul 01, 2026
Meta Attention Implementation + Flash / Linear Attention Follow-ups Hard Jun 30, 2026
Amazon Drone Delivery on a Hub Ring — Minimum Travel Medium Jun 30, 2026
Lyft / ByteDance / Meta Minimum Window Substring Medium Jun 29, 2026
Roblox Dependency Ordering With Topological Sort Hard Jun 29, 2026
Databricks Find Optimal Commute Medium Jun 29, 2026
Intuit Array Plus One with Large-Input Follow-Up Medium Jun 28, 2026
Amazon Inventory Allocation by Bid Priority Medium Jun 28, 2026
Meta / ByteDance Maximum Unique Character Subset Hard Jun 28, 2026
Apple / Amazon / Bloomberg / Meta / Uber Binary Tree Vertical Order Traversal Medium Jun 28, 2026
Voleon Return Words in Repeated Anagram Groups Medium Jun 27, 2026
Waymo Find Dictionary Words Represented by Repeated Letters Medium Jun 27, 2026
Waymo Find a Repeating Vehicle Program Under Fuel and Memory Limits Hard Jun 27, 2026
Amazon Org-Chart Salary Aggregation Medium Jun 27, 2026
Amazon Find Conflicting Events Medium Jun 27, 2026
Google Website Activity Analytics: Unique Users + Session Time Medium Jun 26, 2026
Google 2D Points Connected Components by Radius Medium Jun 26, 2026
Amazon Domain Score Accumulation (Reverse Trie) Medium Jun 26, 2026
Google Meeting Rooms / Interval Scheduling Variants Medium Jun 26, 2026
ByteDance Elements Appearing More Than n/3 in a Sorted Array Medium Jun 26, 2026
Airbnb Fill Layover With Experiences Hard Jun 26, 2026
ByteDance Reverse Nodes in K-Group (incomplete tail variant) Medium Jun 25, 2026
Okta Reverse Substrings Between Each Pair of Parentheses Medium Jun 24, 2026
ByteDance Remove Duplicate Letters for Lexicographically Smallest Result Medium Jun 24, 2026
Meta / ByteDance / Instacart / Uber Basic Calculator I / II Medium Jun 24, 2026
Apple Frontend React Screen Hard Jun 24, 2026
Snowflake Forest Parent Array Delete Node Medium Jun 24, 2026
Snowflake Distributed Tree Node Count Medium Jun 24, 2026
Stripe Six Degrees of Collusion Medium Jun 24, 2026
JPMorgan Zero Compaction Array Coding Easy Jun 23, 2026
JPMorgan Prerequisite Cycle Medium Jun 23, 2026
JPMorgan Interval Consolidation Medium Jun 23, 2026

Page 1 of 10 · Page 2 →