{
  "id": 22567831,
  "title": "Distinct Values Subarrays II | CSES - Algoritmit ongelmanratkaisussa",
  "url": "https://urgent.news/2026/11/29/distinct-values-subarrays-ii-cses-algoritmit-ongelmanratkaisussa",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-29T11:42:13.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/guhan29/distinct-values-subarrays-ii-cses-algoritmit-ongelmanratkaisussa-4a01"
  },
  "original_language": null,
  "account": null,
  "summary": "cses.fi #include #include #include typedef long long ll ; using namespace std ; int main ( ) { ios_base :: sync_with_stdio ( false ) ; cin . tie ( nullptr ) ; int n , k ; cin >> n >> k ; vector arr ( n ) ; for ( int i = 0 ; i > arr [ i ] ; } unordered_map freq ; int left",
  "summary_source": "publisher",
  "key_points": [],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": false,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}