Menu

Earn Premium with Referrals

Invite your friends and earn Premium rewards through our referral program.

See how it works and start inviting friends.

Pattern Recognition Quiz 3
DSA

Pattern Recognition Quiz 3

Practice selecting the right problem-solving pattern from a range of coding interview scenarios.

These are intentionally tricky.

They are not impossible.

But they are designed to test whether you truly analyze:

  • Constraints
  • Monotonicity
  • Graph vs DP confusion
  • Sliding window traps
  • Greedy vs DP confusion

Slow down. Diagnose.


Quiz

You are given an array of integers (can be negative). Find the maximum average subarray of length at least k.


Quiz

Given a matrix where each row and column is sorted, find the kth smallest element.


Quiz

You are given flight tickets represented as pairs of departure and arrival airports. Reconstruct the itinerary in lexical order.


Quiz

Given an array, determine if it can be partitioned into two subsets with equal sum.


Quiz

Given a grid with obstacles and weights, find the minimum cost path from top-left to bottom-right.


Quiz

You are given an array. Find the shortest subarray with sum at least k. Elements may be negative.


Quiz

Given a string, find the minimum cuts needed to partition it into palindromes.


Quiz

You are given n nodes and edges. Each edge has a probability of success. Find the path with maximum probability from start to end.


Quiz

Given an array, find the maximum sum of a subarray of size k.


Quiz

You are given a directed graph. Determine if there exists a cycle.


What This Set Tests

This level checks whether you can:

  • Detect weighted vs unweighted graphs
  • Distinguish fixed window vs variable window
  • Identify Eulerian path vs topological sort
  • Recognize subset DP
  • Avoid sliding window traps
  • Recognize when binary search is hidden

High-Level Pattern Confusion Signals

If You SeeBe Careful
Negative numbersSliding window may fail
Weighted graphBFS is wrong → use Dijkstra
Partition into subsetsOften DP
Minimize maximumBinary search on answer
Exact window sizeFixed sliding window
All tickets used onceEulerian path

At this stage, pattern recognition becomes:

Not reacting to keywords.

But verifying structure.


My Private Notes

Notes are auto-saved locally to this device.