{"id":50013651,"url":"https://github.com/profiq/coding-challenge","last_synced_at":"2026-05-20T02:57:30.755Z","repository":{"id":249944128,"uuid":"833021371","full_name":"profiq/coding-challenge","owner":"profiq","description":"profiq coding challenge ","archived":false,"fork":false,"pushed_at":"2024-08-09T10:07:41.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-08-09T14:44:41.203Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/profiq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-24T07:46:40.000Z","updated_at":"2024-08-09T10:07:44.000Z","dependencies_parsed_at":"2024-07-24T09:15:15.904Z","dependency_job_id":null,"html_url":"https://github.com/profiq/coding-challenge","commit_stats":null,"previous_names":["profiq/coding-challenge"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/profiq/coding-challenge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/profiq%2Fcoding-challenge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/profiq%2Fcoding-challenge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/profiq%2Fcoding-challenge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/profiq%2Fcoding-challenge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/profiq","download_url":"https://codeload.github.com/profiq/coding-challenge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/profiq%2Fcoding-challenge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33243960,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-19T15:49:41.270Z","status":"online","status_checked_at":"2026-05-20T02:00:07.149Z","response_time":356,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-20T02:57:26.617Z","updated_at":"2026-05-20T02:57:30.721Z","avatar_url":"https://github.com/profiq.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Profiq Coding Challenge - Summer 2024 - CZ version\n\n[Engish version](README-EN.md)\n\n### Zadani\nNapiš co nejkratší prompt, který vygeneruje kód implementující cache LRU v Typescriptu.\nPrompt by měl vygenerovat třídu s názvem „LRUCache“ s odpovídajícím typem v TypeScriptu pro hodnotu našeho objektu.\n\n\n```javascript\nexport class LRUCache {\n  constructor(maxCapacity: int) {\n             \t\t…\n  }\n  \n  put(key: string, value: ValueObject) {\n  \t…\n  }\n  \n  get(key: string): ValueObject {\n  \t…\n  }\n  \n  getMostRecentlyUsedKey(): ValueObject {\n  \t…\n  }\n}\n```\n\nHodnota by měla přijímat následující objekt:\n```\n{ \"users\": [ { \"id\": 1, \"name\": \"Alice\", \"email\": \"alice@example.com\", \"roles\": [\"admin\", \"editor\"], \"profile\": { \"age\": 30, \"address\": { \"street\": \"123 Main St\", \"city\": \"Wonderland\", \"postalCode\": \"12345\" } } }, { \"id\": 2, \"name\": \"Bob\", \"email\": \"bob@example.com\", \"roles\": [\"viewer\"], \"profile\": { \"age\": 25, \"address\": { \"street\": \"456 Side St\", \"city\": \"Underland\", \"postalCode\": \"67890\" } } } ], \"settings\": { \"theme\": \"dark\", \"notifications\": { \"email\": true, \"sms\": false }, \"privacy\": { \"trackLocation\": false, \"dataSharing\": true } }, \"metadata\": { \"version\": \"1.0.0\", \"timestamp\": \"2024-07-17T10:00:00Z\" } }\n```\n\nTvůj kód automaticky otestujeme na sadu standardních use casů, ale také na několik okrajových casů:\n\n- metoda get() by měla vracet hodnotu “undefined”, pokud není klíč nalezen,\n- metoda put() by měla přepsat předchozí hodnotu, pokud klíč již existuje,\n- konstruktor by měl vyhodit řetězec „INCORRECT_CAPACITY“, pokud maxCapacity není v rozmemí 1 a 10000,\n- metoda getMostRecentlyUsedKey() by měla vrátit hodnotu “undefined”, pokud ještě nebyl zpřístupněn žádný klíč nebo pokud je cache prázdná.\n\nKód vygenerovaný AI můžeš otestovat v tomto projektu: https://replit.com/@PetrVecera/ai-challenge-2024#README.md\n\n## Hodnoceni\nTvůj prompt otestujeme na gpt-3.5-turbo-0125 s teplotou nastavenou na 0 a max. počtem tokenů nastaveným na 4096 (všechny ostatní parametry budou mít výchozí hodnoty API).\n\n### Bodovani\nPro otestování kódu použijeme testy z [repl.it projektu](https://replit.com/@PetrVecera/ai-challenge-2024#README.md) (výše). Můžeš je tedy použít k ověření, zda tvůj prompt generuje správné řešení. Nejprve seřadíme účastníky podle počtu úspěšně absolvovaných testů. Dále účastníky se stejným počtem absolvovaných test casů seřadíme podle délky \"promptu\" vyjádřené počtem vstupních tokenů.\n\nV případě dotazů neváhejte vytvořit issue https://github.com/profiq/coding-challenge/issues.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprofiq%2Fcoding-challenge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprofiq%2Fcoding-challenge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprofiq%2Fcoding-challenge/lists"}