Skip to main content

You know how to solve it. You fall apart explaining it.

StrongYes is a desk. You explain Two Sum. Coco names the one line that keeps it honest.

two_sum.py
# Two Sum
# Find two numbers that add to target
# return their indices
# hash map for linear time
# Arrays & Hashing
PythonRun
Coco

Coco

Coach

Sample

This solution passes. Which line keeps one array element from being used twice?

Check for the complement before storing the current index.

Guest text is free. Hosted voice is the Own Words Pack.

Try Two Sum free. Signup does not unlock hosted voice.

$79 buys hosted voice for 3 months. We pay the model bill. You are not paying for the problem list.

Own Words Pack

One-time
$79

One-time pack. Hosted voice for 3 months. Guest text stays free.

  • 3 months of hosted voice. We pay the model bill.
  • Hosted voice with Coco, or Fin in pressure mode
  • Hosted voice names one gap, not a score
  • Own Words Pack is a one-time purchase. No auto-renew.
  • Secure checkout opens right after sign-in.
  • The library is open on any device. The live coding rep opens on desktop.

One-time $79 purchase. No auto-renewal. By continuing to Stripe, you agree to the Terms and Privacy Policy. Refund requests sent within 7 days are reviewed manually.

Questions