Set 02 - Arrays & Two Pointers

Use Practice Loop if you need a reset.

Problems

Deliverables

  • Write a 1-line invariant for each problem.
  • Note 1 edge case or pitfall per problem.
  • Record time-to-first-correct solution.

Notes

  • LC 152: track max_prod and min_prod because negatives flip sign.
  • LC 153: binary search; minimum lies in unsorted half (compare mid to right).
  • LC 33: binary search rotated; find sorted half, then check target range.
  • LC 11: two pointers; move the shorter bar to possibly increase area.
  • LC 15: sort + two-sum with l/r; skip duplicates carefully.

Review

  • Time spent + where you got stuck?
  • Biggest mistake or missed edge case?
  • One concrete improvement for next time.

Comments

Share your approach or ask questions

0 comments
?
|
Markdown supported
Sign in to post

Loading comments...