5 min read Core Entities Contact: contact_id, first_name, last_name, email (unique), phone, company_id, job_title, source (INBOUND, OUTBOUND, REFERRAL), owner_id (assigned sales rep), created_at, […] Read article
7 min read Core Entities PaymentIntent: intent_id (UUID), merchant_id, customer_id, amount (integer cents), currency, status (CREATED, PROCESSING, REQUIRES_ACTION, SUCCEEDED, FAILED, CANCELLED, REFUNDED), payment_method_id, […] Read article
7 min read Core Architecture A search system takes a text query and returns a ranked list of documents (web pages, products, articles). […] Read article
7 min read Core Entities User: user_id, email, timezone, working_hours (JSON: {mon: “9:00-17:00”, …}). Calendar: calendar_id, user_id, name, color, is_primary, visibility (PRIVATE, PUBLIC, […] Read article
6 min read When Does Greedy Work? Greedy works when the locally optimal choice at each step leads to a globally optimal solution. […] Read article
7 min read DP on Trees Overview Tree DP solves optimization problems where the answer for each node depends on the answers for […] Read article
7 min read Core Entities Event: event_id, name, venue_id, event_date, doors_open, start_time, status (ON_SALE, SOLD_OUT, CANCELLED, COMPLETED), total_capacity. Venue: venue_id, name, address, seating_map_url, […] Read article
6 min read Core Requirements A coupon system allows businesses to issue discount codes that customers apply at checkout. Types: percentage discount (20% […] Read article
6 min read Recognizing DP Problems Dynamic programming applies when a problem has two properties: (1) Optimal substructure: the optimal solution to the […] Read article
6 min read The Flash Sale Problem A flash sale offers a limited quantity of items at a steep discount for a short […] Read article