0 day streak

Block (Square) coding interview questions

FintechProduct Global

Ranked by how often candidates report them. Each opens in the editor with hidden tests, an animated walkthrough and solutions in four languages; a question you solve once counts for every company that asks it.

0%ready
Your level: practise every reported question.
ProgressTitleDifficultyTopicHow often hereAlso asked atNext step
Validate Binary Search TreePostorder + Multiple Return Values Medium Trees & BST Google, Microsoft, Meta +35 Solve
Network Delay TimeDijkstra Medium Graphs Google, Netflix, Nvidia +6 Solve
Task SchedulerGreedy Medium Arrays & Hashing Amazon, Uber, Snowflake +18 Solve
Number of Black BlocksHashing Medium Arrays & Hashing Stripe, X (Twitter), Visa +2 Solve
Longest Increasing Subsequence1D DP Medium Dynamic Programming Google, Microsoft, TikTok (ByteDance) +29 Solve
Rotating the BoxTwo Pointer Medium Arrays & Hashing Google, Roblox, Visa +2 Solve
Edit DistanceStrings Medium Dynamic Programming Google, LinkedIn, Okta +18 Solve
Encode and Decode StringsString Basics Medium Arrays & Hashing Nvidia, Snowflake, OpenAI +2 Solve
Word Break1D DP Medium Dynamic Programming Google, Amazon, Microsoft +35 Solve
Palindrome PairsHashing Hard Arrays & Hashing Airbnb, Shopee (Sea), Wix Solve
Decode Ways1D DP Medium Dynamic Programming Google, Meta, Tesla +21 Solve
Alien DictionaryTopological Sort Hard Graphs Google, Amazon, Microsoft +20 Solve
Integer to English WordsSimulation Hard Arrays & Hashing Meta, Snowflake, Palantir +17 Solve
Compare Version NumbersString Basics Medium Arrays & Hashing MongoDB, Arista Networks, Zoho Solve
Add StringsRight to Left Traversal Easy Arrays & Hashing Microsoft, Airbnb, Wayfair +7 Solve
Letter Combinations of a Phone NumberChoice per Position Medium Recursion & Backtracking Amazon, Microsoft, Meta +25 Solve
Find the CelebrityCandidate Elimination Medium Graphs LinkedIn, Palantir, American Express +7 Solve
Implement Trie (Prefix Tree)Basics Medium Tries Google, Microsoft, Meta +25 Solve
Word LadderBFS for shortest path Hard Graphs Google, Amazon, Microsoft +39 Solve
Construct Binary Tree from Preorder and Inorder TraversalTree Serialization / Deserialization Medium Trees & BST Microsoft, TikTok (ByteDance), eBay +9 Solve
Reconstruct ItineraryEulerian Path (Hierholzer) Hard Graphs Amazon, Netflix, Airbnb +16 Solve
Time Based Key-Value StoreBasics Medium Binary Search Apple, Netflix, Uber +25 Solve
3SumTwo Sum Medium Arrays & Hashing Google, Amazon, Microsoft +68 Solve
Number of IslandsConnected Components Medium Graphs Google, Amazon, Microsoft +114 Solve
Combination Sum (repeating elements)Pick / Not-Pick Medium Recursion & Backtracking Airbnb, Pinterest, Snap +20 Solve
Two SumTwo Sum Easy Arrays & Hashing Google, Amazon, Microsoft +135 Solve
Valid ParenthesesStack Basics Easy Stack Google, Amazon, Microsoft +119 Solve
Insert IntervalBasics Medium Intervals Google, Apple, LinkedIn +6 Solve
Merge Two Sorted ListsDummy Node Pattern Easy Linked List Google, Amazon, Microsoft +60 Solve
Text JustificationSimulation Hard Arrays & Hashing Google, Microsoft, LinkedIn +28 Solve
Design Snake GameQueue / Circular Buffer Medium Design Data Structures Bloomberg, Palantir, Zillow +3 Solve
Rank Teams by VotesComposite comparator Medium Heaps Coursera, Atlassian, NetApp +3 Solve
The MazeMatrix Graphs Medium Graphs Pinterest, Goldman Sachs Solve
Minimum Path Sum2D DP Medium Dynamic Programming Dropbox, Palo Alto Networks, Waymo +20 Solve
Also reported, being added to AlgoRung (9)

Verifying an Alien Dictionary · Pancake Sorting · Available Captures for Rook · Squirrel Simulation · Falling Squares · Walking Robot Simulation II · Count Nice Pairs in an Array · Goat Latin · Unique Morse Code Words

Questions people ask

What coding questions does Block (Square) ask most?

Validate Binary Search Tree, Network Delay Time, Task Scheduler, Number of Black Blocks, Longest Increasing Subsequence, Rotating the Box, Edit Distance, Encode and Decode Strings.

Which topics come up in Block (Square) coding rounds?

strings, arrays, hash maps, sliding window, graphs, dynamic programming.

How hard are Block (Square) coding questions?

Of the reported questions, 4 are easy, 24 medium and 6 hard. A 45 to 60 minute live interview where you solve one or two data-structures-and-algorithms problems while explaining your thinking. Interviewers score problem solving, code quality, testing and communication.