Daily Active Users and 30-Day Rolling MAU

Easy · Data Manipulation (SQL/Python) · Data Scientist · Technical Screen

Problem Statement

Given an authentication event log (corresponding in SQL to a logins(user_id, browser, login_ts) table linked to users(user_id, signup_date)), compute daily engagement metrics across an inclusive calendar interval [start_date, end_date]:

def compute_dau_and_rolling_mau(
    start_date: str,
    end_date: str,
    logins: List[Dict],
) -> List[Dict]:

Each item in logins is a dictionary containing at least: - "user_id": unique account identifier (int or str). - "login_ts": ISO-8601 timestamp string. Timestamps with an explicit offset are converted to UTC; timestamps without an offset are already in UTC. Additional fields (such as "browser") may be present and do not split user identity.

For every UTC calendar date d from start_date through end_date inclusive (ordered chronologically), emit a dictionary with three keys:

  1. "date": the date string "YYYY-MM-DD".
  2. "dau" (Daily Active Users): count of distinct user_id values that recorded at least one login on UTC date d. Dates with no activity must still appear with "dau": 0.
  3. "mau_l30d" (Trailing 30-Day Active Users): count of distinct user_id values that recorded at least one login during the 30-day inclusive UTC window [d - 29 days, d] (d itself plus the 29 preceding calendar days).

Notes on range boundaries: - If start_date > end_date, return []. - Logins occurring during the 29 days prior to start_date do not generate output rows of their own, but they do count toward "mau_l30d" for any reported date d whose [d - 29 days, d] window still covers them. - Logins strictly after end_date (or 30+ days before start_date) affect no output row.

Examples

Example 1

Input:

start_date = "2025-04-10"
end_date = "2025-04-13"
logins = [
    {"user_id": 101, "login_ts": "2025-04-10T08:15:00Z"},
    {"user_id": 101, "login_ts": "2025-04-10T21:45:00Z"},
    {"user_id": 102, "login_ts": "2025-04-10T14:00:00Z"},
    {"user_id": 103, "login_ts": "2025-04-12T11:30:00Z"},
    {"user_id": 101, "login_ts": "2025-04-12T16:00:00Z"},
]

Output:

[
    {"date": "2025-04-10", "dau": 2, "mau_l30d": 2},
    {"date": "2025-04-11", "dau": 0, "mau_l30d": 2},
    {"date": "2025-04-12", "dau": 2, "mau_l30d": 3},
    {"date": "2025-04-13", "dau": 0, "mau_l30d": 3},
]

Explanation: - On 2025-04-10, user 101 signs in twice and user 102 once, giving 2 distinct users (dau = 2, mau_l30d = 2). - 2025-04-11 has zero logins (dau = 0), while {101, 102} remain inside the 30-day window (mau_l30d = 2). - On 2025-04-12, users 101 and 103 sign in (dau = 2); the 30-day union {101, 102, 103} has size 3. - 2025-04-13 is quiet (dau = 0), and all 3 users remain within the trailing 30 days.

Example 2

Input:

start_date = "2025-05-30"
end_date = "2025-06-01"
logins = [
    {"user_id": "u_alice", "login_ts": "2025-05-01T12:00:00Z"},
    {"user_id": "u_bob", "login_ts": "2025-05-31T09:00:00Z"},
]

Output:

[
    {"date": "2025-05-30", "dau": 0, "mau_l30d": 1},
    {"date": "2025-05-31", "dau": 1, "mau_l30d": 1},
    {"date": "2025-06-01", "dau": 0, "mau_l30d": 1},
]

Explanation: - For 2025-05-30, the 30-day window spans 2025-05-01 through 2025-05-30, capturing "u_alice"'s pre-range login (dau = 0, mau_l30d = 1). - On 2025-05-31, the window advances to 2025-05-02 through 2025-05-31: "u_alice" ages out after 30 days while "u_bob" logs in (dau = 1, mau_l30d = 1). - On 2025-06-01, nobody logs in (dau = 0), and "u_bob" stays inside the 30-day window (mau_l30d = 1).

Constraints

  • start_date and end_date are valid ISO calendar dates ("YYYY-MM-DD").
  • 0 <= len(logins) <= 200,000
  • login["user_id"] is a hashable identifier (int or str).
  • login["login_ts"] is a valid ISO-8601 timestamp string ("YYYY-MM-DDTHH:MM:SSZ", "YYYY-MM-DD HH:MM:SS", "YYYY-MM-DDTHH:MM:SS+00:00", etc.).

Step-by-step walkthrough

  1. Understand the metrics and boundary rules

    We are given an inclusive reporting range [start_date, end_date] (as "YYYY-MM-DD" strings) and logins, a list of login event dictionaries containing user_id and login_ts (an ISO timestamp in UTC). For every calendar date in [start_date, end_date], we must return {"date": ..., "dau": ..., "mau_l30d": ...} in chronological order:

    • dau (Daily Active Users): Number of distinct user_id values with at least one login on that UTC calendar day. Quiet days with zero logins must still appear with dau = 0.
    • mau_l30d (Rolling 30-Day MAU): Number of distinct user_id values with at least one login during the 30 calendar days ending on and including day — that is, [day - 29, day] (29 prior days plus day itself equals 30 days).

    Notice two important boundary facts: - Logins during the 29 days before start_date ([start_date - 29, start_date - 1]) are real activity inside the initial rolling windows, so they count toward mau_l30d on early report days (while never producing output rows of their own). - Logins after end_date (or 30+ days before start_date) cannot affect any reported date and can be ignored.

  2. SQL Task 1: build a calendar spine for zero-login days

    When querying SQL tables users and logins, why does SELECT login_ts::date, COUNT(DISTINCT user_id) FROM logins GROUP BY 1 miss quiet dates? Because GROUP BY can only group rows that exist — if nobody logs in on 2025-04-11, that date does not exist anywhere in logins and vanishes from the output.

    To guarantee a row for every date, generate a complete date spine first using PostgreSQL's generate_series, deduplicate (day, user_id) pairs, and LEFT JOIN the activity onto the calendar:

    calendar (c)     LEFT JOIN    daily_users (du)          COUNT(du.user_id)
    2025-04-10  --------------->  (2025-04-10, user 101)    -> 2 (with user 102)
    2025-04-11  --------------->  (NULL,       NULL)        -> 0 (COUNT(col) skips NULL!)
    2025-04-12  --------------->  (2025-04-12, user 103)    -> 2 (with user 101)
    
    WITH calendar AS (
        SELECT d::date AS day
        FROM generate_series(
            TIMESTAMP '2025-04-01',
            TIMESTAMP '2025-04-30',
            INTERVAL '1 day'
        ) AS g(d)
    ),
    daily_users AS (
        SELECT DISTINCT login_ts::date AS day, user_id
        FROM logins
        WHERE login_ts >= TIMESTAMP '2025-04-01'
          AND login_ts <  TIMESTAMP '2025-04-30' + INTERVAL '1 day'
    )
    SELECT c.day AS date,
           COUNT(du.user_id) AS dau
    FROM calendar AS c
    LEFT JOIN daily_users AS du
           ON du.day = c.day
    GROUP BY c.day
    ORDER BY c.day;
    

    Two classic SQL details make this work: - Deduplicating into daily_users ensures a user who logs in five times on one day has one row, and COUNT(du.user_id) returns 0 on NULL-padded empty days (COUNT(*) would mistakenly count the NULL-padded calendar row as 1). - Filtering login_ts < end + 1 day instead of casting the indexed column in WHERE lets PostgreSQL use an index on logins(login_ts).

  3. SQL Task 2: compute the 30-day rolling distinct count

    For rolling 30-day MAU, two tempting shortcuts fail in PostgreSQL: 1. Summing dau over the last 30 rows (SUM(dau) OVER (...)) counts a user who logged in on 10 days as 10 instead of 1. 2. Writing COUNT(DISTINCT user_id) OVER (ORDER BY day ...) raises a syntax error because PostgreSQL does not support DISTINCT inside window aggregates.

    Instead, extend daily_users back 29 days before the report start so day 1 sees its full lookback, then LEFT JOIN each calendar day c.day to every (day, user_id) pair in [c.day - 29, c.day]:

    WITH calendar AS (
        SELECT d::date AS day
        FROM generate_series(
            TIMESTAMP '2025-04-01',
            TIMESTAMP '2025-04-30',
            INTERVAL '1 day'
        ) AS g(d)
    ),
    daily_users AS (
        SELECT DISTINCT login_ts::date AS day, user_id
        FROM logins
        WHERE login_ts >= TIMESTAMP '2025-04-01' - INTERVAL '29 days'
          AND login_ts <  TIMESTAMP '2025-04-30' + INTERVAL '1 day'
    )
    SELECT c.day AS date,
           COUNT(DISTINCT du.user_id) FILTER (WHERE du.day = c.day) AS dau,
           COUNT(DISTINCT du.user_id) AS mau_l30d
    FROM calendar AS c
    LEFT JOIN daily_users AS du
           ON du.day BETWEEN c.day - 29 AND c.day
    GROUP BY c.day
    ORDER BY c.day;
    

    BETWEEN c.day - 29 AND c.day includes both endpoints (30 calendar days total), and FILTER (WHERE du.day = c.day) computes dau in the exact same pass.

  4. Why scanning every login per day in Python is too slow

    Now let's build the Python function compute_dau_and_rolling_mau tested by the automated judge.

    A brute-force loop visits each date day from start to end and scans all L login records to check which ones fall on day or inside [day - 29, day]. With D reported days and L logins, that costs O(D * L) work — scanning millions of logins 365 separate times for a one-year report. Almost all of that work is redundant, because tomorrow's 30-day window shares 29 of its 30 days with today's window!

  5. Key idea: slide a 30-day window with per-user day counts

    When our calendar pointer steps forward by one day to day, only two dates change membership in the 30-day window: - day enters on the right edge. - leaving_day = day - 30 falls off the left edge (leaving [day - 29, day] inside).

    Yesterday's window:  [day - 30 | day - 29  ...  day - 1]
    Today's window:                [day - 29  ...  day - 1 | day]
                          ^^^^^^^^                           ^^^
                       leaves (day - 30)                  enters (day)
    

    Why can't we just store active users in a Python set and call window_set.remove(user) when leaving_day exits? Suppose user 101 logged in on Apr 10 and again on Apr 12. When Apr 10 leaves the window on May 10, user 101's Apr 12 login is still well inside [Apr 11 .. May 10]! Removing user 101 from a plain set would wrongly drop them early.

    Instead, we keep a dictionary active_day_counts[user] recording how many days inside the current 30-day window that user logged in: - For each user active on day, add 1 to active_day_counts[user]. - For each user active on day - 30, subtract 1, and del active_day_counts[user] only when their count hits 0. - At any day, len(active_day_counts) is the exact number of distinct active users in [day - 29, day]!

  6. Group logins by UTC calendar day

    First we write utc_day(login_ts) to extract the UTC date cleanly whether the timestamp ends in 'Z', '+00:00', another offset, or has no offset. Then inside compute_dau_and_rolling_mau, we deduplicate logins into users_by_day[day] = set_of_user_ids for days in [start - 29, end].

    from datetime import date, datetime, timedelta, timezone
    
    WINDOW_DAYS = 30
    
    
    def utc_day(login_ts: str) -> date:
        """Return the UTC calendar date of an ISO timestamp like '2025-04-10T08:15:00Z'."""
        # Replace trailing 'Z' with '+00:00' so datetime.fromisoformat works on all Python 3 versions.
        moment = datetime.fromisoformat(login_ts.replace("Z", "+00:00"))
        if moment.tzinfo is not None:
            moment = moment.astimezone(timezone.utc)
        # Naive timestamps without an explicit offset are already UTC per the problem statement.
        return moment.date()
    
    
    def compute_dau_and_rolling_mau(
        start_date: str,
        end_date: str,
        logins: List[Dict],
    ) -> List[Dict]:
        start = date.fromisoformat(start_date)
        end = date.fromisoformat(end_date)
        if start > end:
            return []
    
        # Phase 1: Determine lookback start. An inclusive 30-day window ending on `start`
        # covers [start - 29, start] (29 prior days + `start` itself = 30 calendar days).
        first_needed = start - timedelta(days=WINDOW_DAYS - 1)
    
        # Phase 2: Deduplicate logins per UTC day inside [first_needed, end].
        # users_by_day: {date(2025, 4, 10): {101, 102}, ...} mapping each date to distinct user_ids
        users_by_day: Dict[date, Set[Any]] = {}
        for login in logins:
            day = utc_day(login["login_ts"])
            # Logins before `first_needed` expire before `start`; logins after `end` affect no output row.
            if day < first_needed or day > end:
                continue
            if day not in users_by_day:
                users_by_day[day] = set()
            users_by_day[day].add(login["user_id"])
    
  7. Sweep day by day and trace Example 1

    Starting day at first_needed (start - 29) warms up active_day_counts over the 29 pre-range days, and once day >= start we append one output row per calendar date (including days absent from users_by_day, where today_users defaults to set() of length 0).

        # Phase 3: Slide a 30-day window day by day from `first_needed` through `end`.
        # active_day_counts: {user_id: count_of_active_days_in_current_window}
        # Storing a count (not a plain set) keeps a user in MAU if an older day leaves
        # while a newer active day of theirs is still inside the 30-day window.
        active_day_counts: Dict[Any, int] = {}
        rows: List[Dict] = []
        day = first_needed
    
        while day <= end:
            today_users = users_by_day.get(day, set())
    
            # Enter: add 1 active day for each distinct user who logged in on `day`.
            for user in today_users:
                active_day_counts[user] = active_day_counts.get(user, 0) + 1
    
            # Leave: `day - 30` just stepped outside the 30-day window [day - 29, day].
            leaving_day = day - timedelta(days=WINDOW_DAYS)
            for user in users_by_day.get(leaving_day, set()):
                active_day_counts[user] -= 1
                if active_day_counts[user] == 0:
                    del active_day_counts[user]
    
            # Emit output rows only once the warm-up period reaches `start`.
            if day >= start:
                rows.append({
                    "date": day.isoformat(),
                    "dau": len(today_users),
                    "mau_l30d": len(active_day_counts),
                })
    
            day += timedelta(days=1)
    
        return rows
    

    Let's trace Example 1 (start_date = '2025-04-10', end_date = '2025-04-13', user 101 logs in twice and 102 once on 04-10, then 101 and 103 log in on 04-12):

    Date       | today_users | Leaving (day-30) | active_day_counts          | dau | mau_l30d
    -----------+-------------+------------------+----------------------------+-----+---------
    2025-04-10 | {101, 102}  | {}               | {101: 1, 102: 1}           |  2  |    2
    2025-04-11 | {}          | {}               | {101: 1, 102: 1}           |  0  |    2
    2025-04-12 | {101, 103}  | {}               | {101: 2, 102: 1, 103: 1}   |  2  |    3
    2025-04-13 | {}          | {}               | {101: 2, 102: 1, 103: 1}   |  0  |    3
    

    Notice user 101's two 2025-04-10 logins collapsed into {101, 102} during Phase 2, on 2025-04-12 user 101's active-day count rises to 2 while len(active_day_counts) counts distinct users (3), and quiet dates 04-11 and 04-13 appear with dau = 0.

  8. Complete solution

    from typing import Any, Dict, List, Optional, Set, Tuple
    from datetime import date, datetime, timedelta, timezone
    
    WINDOW_DAYS = 30
    
    
    def utc_day(login_ts: str) -> date:
        """Return the UTC calendar date of an ISO timestamp like '2025-04-10T08:15:00Z'."""
        # Replace trailing 'Z' with '+00:00' so datetime.fromisoformat works on all Python 3 versions.
        moment = datetime.fromisoformat(login_ts.replace("Z", "+00:00"))
        if moment.tzinfo is not None:
            moment = moment.astimezone(timezone.utc)
        # Naive timestamps without an explicit offset are already UTC per the problem statement.
        return moment.date()
    
    
    def compute_dau_and_rolling_mau(
        start_date: str,
        end_date: str,
        logins: List[Dict],
    ) -> List[Dict]:
        start = date.fromisoformat(start_date)
        end = date.fromisoformat(end_date)
        if start > end:
            return []
    
        # Phase 1: Determine lookback start. An inclusive 30-day window ending on `start`
        # covers [start - 29, start] (29 prior days + `start` itself = 30 calendar days).
        first_needed = start - timedelta(days=WINDOW_DAYS - 1)
    
        # Phase 2: Deduplicate logins per UTC day inside [first_needed, end].
        # users_by_day: {date(2025, 4, 10): {101, 102}, ...} mapping each date to distinct user_ids
        users_by_day: Dict[date, Set[Any]] = {}
        for login in logins:
            day = utc_day(login["login_ts"])
            # Logins before `first_needed` expire before `start`; logins after `end` affect no output row.
            if day < first_needed or day > end:
                continue
            if day not in users_by_day:
                users_by_day[day] = set()
            users_by_day[day].add(login["user_id"])
    
        # Phase 3: Slide a 30-day window day by day from `first_needed` through `end`.
        # active_day_counts: {user_id: count_of_active_days_in_current_window}
        # Storing a count (not a plain set) keeps a user in MAU if an older day leaves
        # while a newer active day of theirs is still inside the 30-day window.
        active_day_counts: Dict[Any, int] = {}
        rows: List[Dict] = []
        day = first_needed
    
        while day <= end:
            today_users = users_by_day.get(day, set())
    
            # Enter: add 1 active day for each distinct user who logged in on `day`.
            for user in today_users:
                active_day_counts[user] = active_day_counts.get(user, 0) + 1
    
            # Leave: `day - 30` just stepped outside the 30-day window [day - 29, day].
            leaving_day = day - timedelta(days=WINDOW_DAYS)
            for user in users_by_day.get(leaving_day, set()):
                active_day_counts[user] -= 1
                if active_day_counts[user] == 0:
                    del active_day_counts[user]
    
            # Emit output rows only once the warm-up period reaches `start`.
            if day >= start:
                rows.append({
                    "date": day.isoformat(),
                    "dau": len(today_users),
                    "mau_l30d": len(active_day_counts),
                })
    
            day += timedelta(days=1)
    
        return rows
    

    ✅ Submit now — all tests should pass.

Intuition & how it works

Think of tracking daily gym visitors in a paper logbook that reserves one page per calendar date — even holidays when the gym stays empty — while sliding a 30-page cardboard frame forward one page each morning. DAU (Daily Active Users) is the count of unique visitors listed on today's page, and rolling MAU (Monthly Active Users, or L30D) is the count of unique visitors who appear on at least one of the 30 pages ending today ([day - 29, day]). In SQL, we generate every calendar page in a CTE (Common Table Expression) — a named temporary result defined with WITH — and attach logins using a LEFT JOIN, a join that keeps every row from the left calendar table and fills NULL when a date has zero logins. In Python, we slide that 30-day frame forward using a reference-counted sliding window, a dictionary active_day_counts[user] recording how many of the current 30 pages list each user, so we add 1 when today enters and subtract 1 when day - 30 exits.

Naive approaches break down in both languages. Grouping the logins table directly omits quiet days altogether, summing daily DAU with a window function (an OVER (...) calculation across nearby rows) counts a loyal user 30 times instead of once, and scanning all L login rows from scratch for each of D days in Python takes O(D * L) time because it re-reads the 29 overlapping days over and over.

Walk through Example 1 (2025-04-10 to 2025-04-13, user 101 signs in at 08:15 and 21:45 on 04-10 plus 16:00 on 04-12, user 102 on 04-10, and user 103 on 04-12): 1. Deduplicating by UTC date produces users_by_day = {2025-04-10: {101, 102}, 2025-04-12: {101, 103}}, collapsing user 101's two 04-10 logins into one entry. 2. On 2025-04-10, users 101 and 102 enter (active_day_counts = {101: 1, 102: 1}), emitting dau = 2, mau_l30d = 2. 3. On 2025-04-11, nobody logs in (today_users = set()), so dau = 0, while active_day_counts stays {101: 1, 102: 1} for mau_l30d = 2. 4. On 2025-04-12, 101 increments to 2 and 103 enters (active_day_counts = {101: 2, 102: 1, 103: 1}), emitting dau = 2, mau_l30d = 3; on 2025-04-13, nobody logs in, emitting dau = 0, mau_l30d = 3.

Complexity

Let L be the number of input login events, D be the number of reported dates in [start_date, end_date], and P be the number of distinct (day, user_id) pairs inside [start_date - 29, end_date] (note P <= L).

  • Time: O(L + D + P) in Python. Grouping scans the L login dictionaries once in O(L) average time, the calendar loop steps across D + 29 days, and each of the P distinct (day, user_id) pairs increments active_day_counts once on entry and decrements it at most once on exit. In the PostgreSQL range-join query, each (day, user_id) pair joins with up to 30 calendar dates (O(30 * P) intermediate rows) before COUNT(DISTINCT ...), and an index on logins(login_ts) (or daily table partitioning) limits the table scan to [start - 29, end + 1).
  • Space: O(P + D) in Python, storing P user-day entries across users_by_day, at most P distinct users in active_day_counts, and D output dictionaries.

Edge cases

  • Zero logins across the whole range (logins = []): Still outputs all D calendar dates with dau = 0 and mau_l30d = 0.
  • Inverted date range (start_date > end_date): Returns [] immediately.
  • Exact 30-day expiration boundary: A login on day X stays inside [day - 29, day] for day = X through day = X + 29 (30 days total) and leaves on day = X + 30.
  • Pre-range lookback ([start_date - 29, start_date - 1]): Counted in mau_l30d for early output days without creating output rows before start_date; logins <= start_date - 30 or > end_date have zero effect.
  • Multiple active days for the same user in one window: When their earlier active day slides out at day - 30, active_day_counts[user] drops from 2 to 1 (not 0), keeping them in mau_l30d until their latest active day also ages out.
  • Leap years and month lengths: datetime.date + timedelta handles 2024-02-29 automatically (2024-03-01 - 29 days = 2024-02-01).
  • Varied ISO timestamp formats: Trailing 'Z', '+00:00', non-zero timezone offsets, space separators, and offset-free UTC strings all normalize to the right UTC calendar date.

Common mistakes

  • Grouping logins without a calendar spine in SQL: Silently omits zero-activity days instead of reporting dau = 0.
  • Using COUNT(*) instead of COUNT(du.user_id) after LEFT JOIN: Counts the single NULL-padded calendar row on empty days and reports dau = 1 instead of 0.
  • Off-by-one lookback (day - 30 instead of day - 29): BETWEEN c.day - 30 AND c.day spans 31 inclusive calendar days, not 30.
  • Filtering logins to >= start_date before computing MAU: Throws away the 29-day warm-up window and undercounts mau_l30d for the first 29 days of the report.
  • Storing window users in a plain set instead of a count dict: Deleting user when an old login day exits drops users who also logged in more recently within the same 30-day window.
  • Using ROWS BETWEEN 29 PRECEDING AND CURRENT ROW on an unpadded table: If missing dates exist, 29 preceding rows can span far more than 29 calendar days, and PostgreSQL rejects COUNT(DISTINCT ...) in window functions anyway.

Follow-up questions

  • How would you construct a contiguous date spine in SQL when the warehouse has no prebuilt calendar table? For ad-hoc PostgreSQL queries, build the spine inline inside a CTE using SELECT d::date AS day FROM generate_series(TIMESTAMP '2025-04-01', TIMESTAMP '2025-04-30', INTERVAL '1 day') AS g(d). In a shared analytics warehouse, teams normally materialize a permanent dim_date dimension table once (date_key, day_of_week, is_weekend, is_holiday, fiscal_quarter) indexed on date_key, allowing every metric pipeline to reuse consistent calendar attributes without regenerating series on every run.
  • Why can a 30-day rolling window distort metrics for a weekday-heavy business app, and what window lengths avoid that issue? Because 30 = 4 * 7 + 2, an L30D window spans different numbers of business days depending on which weekday it ends: 20 weekdays when ending on Sunday, 21 on Monday or Saturday, and 22 on Tuesday through Friday. That shifting workday count creates a weekly sawtooth ripple in mau_l30d among occasional users even when true engagement is flat, while near-zero weekend dau causes raw DAU / MAU ratios to plunge every Saturday and Sunday. Better alternatives for B2B software are L28D (always 4 complete weeks = 20 weekdays regardless of day-of-week), a trailing 20-workday window filtered via dim_date.is_weekend = FALSE, or reporting WAU (L7D) alongside weekday-averaged DAU.
  • How would you redesign the pipeline if raw login volume grows to billions of events per month? Maintain an incremental daily aggregate table daily_active_users(day, user_id) partitioned by day so each nightly job scans only the previous day's raw login events once. To serve rolling 30-day MAU without the 30x range-join fanout, either maintain a user_last_seen(user_id, last_login_day) snapshot (answering any single date's MAU via WHERE last_login_day BETWEEN d - 29 AND d) or store one daily HyperLogLog sketch — a compact ~1–2 KB probabilistic counter whose sketches can be unioned across 30 days in milliseconds to estimate distinct users within ~1% error.

Follow-up questions

Similar questions

More Glean interview questions

All 41 Glean questions →