{
  "app": {
    "name": "Mokabla",
    "url": "https://www.mokabla.com",
    "description": "Real interview questions from companies in Egypt, organised by company. Access is sold per company for 30 days."
  },
  "page": {
    "kind": "question",
    "title": "Question · two-lowest-sum",
    "humanPath": "/en/c/talabat/two-lowest-sum",
    "humanOnly": false
  },
  "identity": {
    "class": "declared",
    "agent": "ClaudeBot",
    "operator": "Anthropic",
    "verified": false,
    "reason": "The user agent is ClaudeBot (Anthropic), which identifies itself as an AI agent.",
    "signals": [
      "Known agent user agent"
    ],
    "claimable": false
  },
  "state": {
    "question": {
      "slug": "two-lowest-sum",
      "title": "Sum of Two Lowest Numbers",
      "difficulty": "easy",
      "tags": [
        "coding",
        "algorithms-theory",
        "technical",
        "swe"
      ],
      "is_free": true,
      "locked": false,
      "frequency": 0.25,
      "last_reported_at": "2025-09-13T21:14:12.225382Z",
      "url": "https://www.mokabla.com/en/c/talabat/two-lowest-sum",
      "agent": {
        "page": "https://www.mokabla.com/agent/en/c/talabat/two-lowest-sum",
        "question": "https://www.mokabla.com/agent/_call/get_question?company=talabat&question=two-lowest-sum"
      },
      "company": {
        "slug": "talabat",
        "name_en": "Talabat"
      },
      "body_md": "## What they ask\n\nGiven an unsorted array of at least two positive integers, return the sum of the two smallest values. The obvious answer is to sort; the interviewer then asks for a single pass.\n\nIn the same session they typically add a sibling problem: **move all zeros to the left** of the array while keeping the order of the non-zero elements.\n\n## Examples\n\n- `[19, 5, 42, 2, 77]` returns `7`.\n- `[10, 343445353, 3453445, 3453545353453]` returns `3453455`.\n- `[3, 3, 1]` returns `4` (duplicates allowed).\n\nZeros variant: `[1, 0, 2, 0, 3]` becomes `[0, 0, 1, 2, 3]`.\n\n## Constraints\n\n- `2 <= n <= 10^5`, values fit in 64-bit integers.\n- Target O(n) time and O(1) extra space.\n\n## What they look for\n\n- Tracking `min1` and `min2` correctly when a new value is smaller than `min1` (the old `min1` must slide to `min2`).\n- Tests for duplicates and for the minimum appearing last.\n- For the zeros variant, a two-pointer in-place solution rather than building two arrays.",
      "follow_ups_md": "- Generalize to the k smallest values in O(n log k).\n- Do the zeros variant in place while preserving order."
    },
    "paid": false,
    "access": "Question bodies are paid content: a person buys 30 days of access per company (200 EGP or 200 points) in the human app. Agents get titles, tags and difficulty; bodies only for free questions."
  },
  "actions": [
    {
      "name": "get_question",
      "description": "One question with its body. Bodies are paid content unless the question is free.",
      "permission": "allow",
      "sideEffect": "read",
      "input": {
        "company": "string",
        "question": "string"
      },
      "href": "https://www.mokabla.com/agent/_call/get_question?company=talabat&question=two-lowest-sum",
      "ready": true,
      "missing": [],
      "humanPath": "https://www.mokabla.com/en/pricing"
    },
    {
      "name": "list_questions",
      "description": "The questions reported at a company: titles, tags, difficulty, whether each is free or paid.",
      "permission": "allow",
      "sideEffect": "read",
      "input": {
        "company": "string",
        "page": "number?"
      },
      "href": "https://www.mokabla.com/agent/_call/list_questions?company=talabat",
      "ready": true,
      "missing": []
    },
    {
      "name": "buy_access",
      "description": "Buy 30 days of access to a company.",
      "permission": "block",
      "reason": "This action is for people only",
      "ruleId": "R1",
      "sideEffect": "payment",
      "input": {
        "company": "string"
      },
      "href": "https://www.mokabla.com/agent/_call/buy_access?company=talabat",
      "ready": true,
      "missing": [],
      "humanPath": "https://www.mokabla.com/en/pricing"
    },
    {
      "name": "post_comment",
      "description": "Comment on a question.",
      "permission": "block",
      "reason": "This action is for people only",
      "ruleId": "R1",
      "sideEffect": "write",
      "input": {
        "question": "string",
        "text": "string"
      },
      "href": "https://www.mokabla.com/agent/_call/post_comment?question=two-lowest-sum",
      "ready": false,
      "missing": [
        "text"
      ],
      "humanPath": "https://www.mokabla.com/en/companies"
    }
  ],
  "navigate": [
    {
      "label": "This question, as data (free questions only)",
      "href": "https://www.mokabla.com/agent/_call/get_question?company=talabat&question=two-lowest-sum"
    },
    {
      "label": "All questions at this company",
      "href": "https://www.mokabla.com/agent/_call/list_questions?company=talabat"
    },
    {
      "label": "The company page",
      "href": "https://www.mokabla.com/agent/en/c/talabat"
    },
    {
      "label": "Sum of Two Lowest Numbers · page",
      "href": "https://www.mokabla.com/agent/en/c/talabat/two-lowest-sum"
    }
  ],
  "notices": [
    {
      "severity": "info",
      "message": "This classification is final for the session: it came from a strong signal, not a guess. The human pages are not served to agents."
    },
    {
      "severity": "info",
      "message": "Unverified agents are read-only. Signed requests (Web Bot Auth) are the path to write access."
    }
  ],
  "meta": {
    "requestId": "ag_1495f9bfe67b",
    "policyVersion": "mokabla-2026-11-03",
    "generatedAt": "2026-11-03T18:41:57.184Z",
    "jsonUrl": "https://www.mokabla.com/agent/en/c/talabat/two-lowest-sum?format=json",
    "manifestUrl": "https://www.mokabla.com/.well-known/agentgate.json",
    "humanUrl": "https://www.mokabla.com/en/c/talabat/two-lowest-sum",
    "humanClaimUrl": "https://www.mokabla.com/agent/_claim/human?to=%2Fen%2Fc%2Ftalabat%2Ftwo-lowest-sum"
  }
}