{"blocks": [{"key": "8104711c", "text": "orders", "type": "unstyled", "depth": 0, "inlineStyleRanges": [], "entityRanges": [], "data": {}}, {"key": "5f0ac314", "text": "+----+---------+------------+\n| id | user_id | order_date |\n+----+---------+------------+\n| 1 | 101 | 2024-01-01 |\n| 2 | 101 | 2024-01-02 |\n| 3 | 101 | 2024-01-05 |\n| 4 | 102 | 2024-01-03 |\n| 5 | 102 | 2024-01-04 |\n+----+---------+------------+", "type": "code-block", "depth": 0, "inlineStyleRanges": [], "entityRanges": [], "data": {}}, {"key": "f81d7a95", "text": "Scenario", "type": "header-two", "depth": 0, "inlineStyleRanges": [], "entityRanges": [], "data": {}}, {"key": "b4e6f39f", "text": "The commerce team wants to know each customer’s best ordering streak for loyalty analysis.", "type": "unstyled", "depth": 0, "inlineStyleRanges": [], "entityRanges": [], "data": {}}, {"key": "248154a4", "text": "Question", "type": "header-two", "depth": 0, "inlineStyleRanges": [], "entityRanges": [], "data": {}}, {"key": "9b145259", "text": "For every user, return the maximum number of consecutive calendar days on which they placed at least one order.", "type": "unstyled", "depth": 0, "inlineStyleRanges": [], "entityRanges": [], "data": {}}, {"key": "04f86322", "text": "Hints", "type": "header-two", "depth": 0, "inlineStyleRanges": [], "entityRanges": [], "data": {}}, {"key": "2346a461", "text": "Generate dense date series per user; use gaps-and-islands or window functions.", "type": "unstyled", "depth": 0, "inlineStyleRanges": [], "entityRanges": [], "data": {}}], "entityMap": {}}