惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Forbes - Security
Forbes - Security
A
Arctic Wolf
M
MIT News - Artificial intelligence
T
Threat Research - Cisco Blogs
T
The Exploit Database - CXSecurity.com
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
L
Lohrmann on Cybersecurity
Martin Fowler
Martin Fowler
A
About on SuperTechFans
P
Palo Alto Networks Blog
Project Zero
Project Zero
The GitHub Blog
The GitHub Blog
WordPress大学
WordPress大学
Blog — PlanetScale
Blog — PlanetScale
博客园_首页
大猫的无限游戏
大猫的无限游戏
Cisco Talos Blog
Cisco Talos Blog
P
Proofpoint News Feed
D
DataBreaches.Net
Cyberwarzone
Cyberwarzone
T
Tor Project blog
IT之家
IT之家
P
Proofpoint News Feed
Help Net Security
Help Net Security
S
Securelist
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
CXSECURITY Database RSS Feed - CXSecurity.com
Microsoft Azure Blog
Microsoft Azure Blog
V2EX - 技术
V2EX - 技术
K
Kaspersky official blog
Hugging Face - Blog
Hugging Face - Blog
MongoDB | Blog
MongoDB | Blog
B
Blog
N
News and Events Feed by Topic
The Cloudflare Blog
S
Schneier on Security
P
Privacy & Cybersecurity Law Blog
T
The Blog of Author Tim Ferriss
Recorded Future
Recorded Future
Last Week in AI
Last Week in AI
The Last Watchdog
The Last Watchdog
Hacker News - Newest:
Hacker News - Newest: "LLM"
L
LangChain Blog
I
InfoQ
F
Full Disclosure
The Register - Security
The Register - Security
阮一峰的网络日志
阮一峰的网络日志
H
Hacker News: Front Page
V
V2EX

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
You Know the Coding Patterns. Why Do You Still Freeze in Interviews?
Alex Mateo · 2026-06-15 · via DEV Community

You Know the Coding Patterns. Why Do You Still Freeze in Interviews?

Six months of preparation. Sliding window understood. BFS coded from memory. Dynamic programming, two pointers, DFS, binary search, Dijkstra. You have covered all of them. You have solved problems for each one.

The interview starts. You read the problem statement. And for the first 45 seconds, nothing comes.

This happens to well-prepared candidates more than to underprepared ones. The paradox makes sense once you understand what is actually going wrong.


The difference between knowing a pattern and recognizing one

Knowing a pattern means: given the name, you can implement it.

Recognizing a pattern means: given a problem you have never seen, you can identify which structure applies before you touch the keyboard.

These are two completely separate skills. Almost all interview preparation trains the first. Almost no interview preparation trains the second.

When you study sliding window, you learn how the window expands and contracts, how to track the constraint, how to update your answer. Valuable. But the moment you need it in an interview, the question is not "how does sliding window work?" The question is "is this a sliding window problem at all?"

Those two questions live in different parts of your brain.


Why freezing gets worse the more patterns you know

The counterintuitive part: candidates who have studied all seven patterns tend to freeze harder than candidates who know only three or four well.

The reason is interference. When a new problem arrives and you have seven candidates in your mental library, you are not searching from nothing. You are running a comparison across seven options simultaneously, each of which seems like it could apply until you look more carefully.

The more deeply you know each individual pattern, the harder it gets to disambiguate under time pressure. The search space grows with your knowledge, which is the opposite of what you expect.

Experienced engineers solve this differently. They do not mentally enumerate all seven patterns when they read a problem. They look for one or two structural properties in the problem statement that narrow the search immediately, before they even consider implementation.

That narrowing skill is what you actually need to build.


The structural signature of each pattern

Each pattern has a signature. Not a keyword in the problem statement, but a structural property of what the problem is actually asking you to accomplish. Learning these signatures is what separates knowing patterns from recognizing them.

Sliding Window

The signature is a constraint on a contiguous range. When the problem asks for the longest, shortest, maximum, or minimum something within a connected subarray or substring, sliding window is the candidate. The word that surfaces this signature is "contiguous." A subarray means adjacent elements. A substring means adjacent characters. The moment adjacency appears in the constraint, you are in sliding window territory.

The window expands to include new elements when the constraint is satisfied, and shrinks from the left when the constraint is violated. The answer updates at each valid state.

What makes this distinct from two pointers: sliding window requires elements to be adjacent to each other. Two pointers does not.

Two Pointers

The signature is symmetric comparison in a sorted structure. One pointer at the beginning, one at the end, converging based on whether the current pair overshoots or undershoots a target. The sorted order is what makes the convergence directional and meaningful. Without sorted order, moving the left pointer right has no predictable effect on the pair sum, and the pattern stops working.

The structural property to look for: you need to find a pair, triplet, or partition where elements can come from anywhere in the array, not just adjacent positions.

BFS

The signature is minimum cost in an unweighted traversal. Whenever a problem asks for the fewest steps, the shortest transformation sequence, or the minimum number of moves in a graph or grid where every edge has the same cost, BFS is the candidate.

The level-by-level expansion is what produces the shortest path guarantee. Processing all nodes at distance 1 before any node at distance 2 means the first time you reach the target, you have taken the shortest possible path.

What makes this distinct from DFS: BFS guarantees the shortest path in unweighted graphs. DFS finds any path.

DFS and Backtracking

The signature is exhaustive exploration. Any problem that asks you to find all possible combinations, generate every valid configuration, or determine whether any path satisfies a condition is asking for DFS. The signal words are "all," "every valid," and "whether it is possible." When you need to enumerate the entire search space rather than find the shortest route through it, DFS is the structure.

Backtracking is DFS with an undo step: you build a candidate solution incrementally, check validity at each step, and remove the last choice when you reach a dead end.

Binary Search

This pattern has two signatures and the second one is the one people miss.

The obvious signature: a sorted array with a search target. Standard binary search on a value.

The less obvious signature: a threshold problem. The problem asks for the minimum value of X such that some condition holds, and you can write a function that checks whether a given X satisfies that condition in linear time. You binary search on the answer rather than on the input. The signal: "minimum X such that Y is possible" or "maximum X such that Y is achievable." That phrasing almost always points to binary search on the answer space, not on the array.

Dynamic Programming

The signature is a choice at every step with an optimal substructure. The problem asks for a maximum, minimum, count of ways, or whether something is achievable. The answer to the full problem depends on answers to smaller versions of the same problem, and those smaller versions overlap.

If you write a recursive brute force and the recursion tree recomputes the same inputs, you have overlapping subproblems. Add memoization and you have top-down DP.

What makes this distinct from greedy: greedy commits to the locally optimal choice at each step without revisiting. DP considers all choices and takes the globally optimal one. The test: does a greedy strategy fail on any counterexample? If yes, the problem needs DP.

Dijkstra

The signature is shortest path in a weighted graph with non-negative edges. The distinction from BFS is purely the presence of different weights. If all edges cost the same, BFS finds the shortest path because adding more edges always adds more cost. If edges have different costs, BFS no longer works because a path with fewer edges may cost more than one with more edges.

Dijkstra uses a min-heap to always process the lowest-cost node first. That priority ordering is what preserves the shortest path guarantee in the presence of unequal weights.


The practice that actually builds recognition

Solving more problems does not fix retrieval failure. What fixes it is deliberate labeling.

The method: when you open a new problem, do not write any code. Read the problem statement once and write down in one sentence which pattern applies and why. Specifically the why. What structural property in the problem statement told you which pattern to reach for?

Then solve the problem. Then compare your initial label to what you actually implemented. If you mislabeled it, go back and identify which signal you missed or misread.

After 30 to 50 problems of deliberate labeling practice, two things happen. The seven structural signatures become automatic. You stop thinking about them consciously and start seeing them. And your freezing time at the start of a problem drops to near zero because you have a reliable lookup in your head that maps problem shapes to starting points.

The problems you mislabeled are more valuable than the ones you labeled correctly. They show you exactly where your pattern recognition is leaky.


What this looks like in a real interview

When you receive a problem, the first 60 seconds should go like this.

Read the problem once for the general shape. Is there a graph? Is there a sequence with a constraint on contiguous elements? Is the problem asking for all possibilities or for the optimal one? Three questions, under a minute, narrow you to one or two candidates.

State your hypothesis out loud before writing code: "This looks like a sliding window problem because the question asks for the longest contiguous substring satisfying a condition." That sentence tells the interviewer you recognized the pattern, which accounts for a significant share of the evaluation before a single line of code exists.

Then validate or update the hypothesis as you talk through the approach.

The interviewer is not only evaluating whether you solve the problem. They are evaluating whether you can navigate from an unfamiliar problem to a structured approach in real time. Pattern recognition is that navigation skill. It is also the one skill that compounds across all problems rather than being specific to any one of them.


The order matters too

One thing most guides skip: the order in which you learn these patterns affects how quickly recognition becomes automatic.

Sliding window and two pointers share enough surface similarity that learning them together, and being deliberate about their distinction, forces the structural thinking earlier. BFS and DFS are naturally paired as "graph traversal with different goals." Binary search and DP are the two that need the most time because both have non-obvious secondary signatures (binary search on the answer space; DP disguised as a greedy problem).

Learning patterns in a sequence that highlights their contrasts rather than treating each one in isolation accelerates the pattern recognition phase significantly.


If you want the complete reference for all seven patterns including the specific recognition cues, the classic problems for each, and the distinctions between patterns that look similar on the surface, the Expora blog has a full breakdown here: Coding Interview Patterns: The 7 That Cover 80% of Problems

The structural signatures above combined with the implementation depth in that reference cover what you need to convert pattern knowledge into pattern fluency under interview pressure.