Talentd
FleetCode
Make and follow sheets.Sign in

Square Interview Questions (11)

Coding problems reported from Square interviews and online assessments.

Start practising
A private sheet of Square's most asked problems with a two-week finish date.
Questions11
Easy1
Medium9
Hard1
TitleSolutionAcceptDifficultyAsked
139. Word BreakVideo
Solution49.8%Medium
573. Squirrel SimulationVideoPremium
Solution57.1%Medium
699. Falling SquaresVideo
Solution48.9%Hard
969. Pancake SortingVideo
Solution71.7%Medium
1861. Rotating the BoxVideo
Solution82.4%Medium
Solution41.5%Medium
271. Encode and Decode StringsVideoPremium
Solution51.9%Medium
Showing 1–10 of 10

More about Square interviews

Preparing for Square interview questions requires more than just solving random LeetCode problems. Square (now part of Block) looks for engineers who can write clean, production-ready code and design scalable systems used by millions of merchants and payment users worldwide. Their engineering culture emphasizes strong fundamentals, thoughtful problem solving, and the ability to communicate clearly while coding.

The typical Square coding interview begins with a technical phone screen where candidates solve one or two data structures and algorithms problems. Candidates who pass move on to onsite or virtual onsite rounds that usually include multiple coding interviews, a system design discussion (for experienced roles), and a behavioral round focused on collaboration and ownership.

From real interview reports, Square tends to focus on practical algorithmic problems rather than obscure puzzles. Common patterns include:

  • Hash maps and frequency counting
  • Array and string manipulation
  • Tree and graph traversal
  • Two-pointer and sliding window techniques
  • Medium-level dynamic programming

Most questions fall in the easy-to-medium range, but interviewers often push candidates to improve solutions, analyze complexity, and discuss trade-offs. Clean code and clear reasoning matter as much as the final answer.

On this page, you'll find 12 real Square coding interview problems curated from past interview experiences. Each problem includes explanations and solutions in multiple languages so you can practice the exact patterns Square engineers expect. If you're preparing for a Square software engineer role, working through these questions is one of the fastest ways to build confidence before the interview.

Interview tips

Understanding the Square interview process can significantly improve your chances of success. While the exact structure varies by role and level, most candidates go through a structured series of technical and behavioral interviews focused on real-world engineering skills.

A typical Square software engineering interview includes:

  • Recruiter screen: 20–30 minute call discussing your background and the role.
  • Technical phone screen: One coding problem solved in a shared editor, focusing on data structures and clean implementation.
  • Virtual onsite (3–5 rounds): Multiple coding interviews, a system design round for mid/senior roles, and a behavioral interview.

Square interviewers emphasize readable code and thoughtful discussion. They often ask candidates to explain their approach before coding and may request improvements or optimizations after the initial solution.

The most common DSA topics in Square coding interviews include:

  • Arrays and strings (parsing, transformations, substring problems)
  • Hash tables and counting problems
  • Binary trees and BFS/DFS traversal
  • Intervals and scheduling problems
  • Two pointers and sliding window techniques

Unlike some companies that heavily emphasize advanced algorithms, Square frequently uses problems that simulate practical backend tasks such as log processing, transaction grouping, or data aggregation.

Preparation strategy:

  • Start with easy-to-medium array and hashmap problems.
  • Practice explaining your thought process out loud while coding.
  • Focus on writing clean, modular code with clear variable names.
  • Review time and space complexity after every solution.

Common mistakes to avoid:

  • Jumping into code without explaining the approach.
  • Ignoring edge cases such as empty inputs or duplicates.
  • Writing overly complex solutions when simpler ones exist.

Most candidates prepare for 4–6 weeks

Frequently asked questions

What DSA topics does Square ask most?

Square frequently asks questions on arrays, strings, hash tables, binary trees, and graph traversal. Two-pointer techniques, sliding window problems, and interval-based questions also appear regularly in Square coding interviews.

How hard are Square coding interviews?

Square coding interviews are generally considered medium difficulty. Most questions focus on arrays, hash maps, strings, and tree traversal rather than very advanced algorithms. However, interviewers expect clean code, strong reasoning, and clear communication while solving the problem.

Does Square ask system design questions?

Yes, Square often includes a system design interview for mid-level and senior engineering roles. These interviews evaluate your ability to design scalable services, discuss trade-offs, and handle real-world constraints such as reliability and data consistency.

What is the Square interview process like?

The Square interview process usually starts with a recruiter call followed by a technical phone screen. Successful candidates are invited to a virtual onsite with 3–5 rounds including coding interviews, a system design round for experienced engineers, and a behavioral interview.

How many LeetCode problems should I solve for Square?

Prioritize easy and medium problems covering arrays, hashing, trees, and graph traversal instead of extremely difficult algorithmic puzzles.

How long should I prepare for a Square coding interview?

A focused preparation period of about 4–6 weeks is typical. During this time, candidates should practice common coding patterns, review data structures, and simulate live coding interviews to build speed and confidence.