{"id":23554388,"url":"https://github.com/jorjishasan/software_engineer-hackerrank","last_synced_at":"2025-10-13T00:43:20.744Z","repository":{"id":242968610,"uuid":"811087232","full_name":"jorjishasan/Software_Engineer-hackerrank","owner":"jorjishasan","description":"I solved three questions on three different topics ( SQL, REST API, Problem Solving). The problems were basic. I had fun solving them, and feel free to share them here. Put them in good use. Cheers 🥂","archived":false,"fork":false,"pushed_at":"2024-06-05T23:39:39.000Z","size":152,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-18T11:51:08.560Z","etag":null,"topics":["problem-solving","rest-api","software-engineering","sql"],"latest_commit_sha":null,"homepage":"https://www.hackerrank.com/certificates/bd5d8a43b7c2","language":"Python","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/jorjishasan.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,"zenodo":null}},"created_at":"2024-06-05T22:58:17.000Z","updated_at":"2025-03-28T04:53:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"f5e70a6e-c699-4845-aaf1-9754ef3c35cf","html_url":"https://github.com/jorjishasan/Software_Engineer-hackerrank","commit_stats":null,"previous_names":["jorjishasan/software_engineer-role_certification_by_hackerrank"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jorjishasan/Software_Engineer-hackerrank","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorjishasan%2FSoftware_Engineer-hackerrank","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorjishasan%2FSoftware_Engineer-hackerrank/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorjishasan%2FSoftware_Engineer-hackerrank/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorjishasan%2FSoftware_Engineer-hackerrank/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jorjishasan","download_url":"https://codeload.github.com/jorjishasan/Software_Engineer-hackerrank/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorjishasan%2FSoftware_Engineer-hackerrank/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274046000,"owners_count":25212982,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"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":["problem-solving","rest-api","software-engineering","sql"],"created_at":"2024-12-26T12:14:05.911Z","updated_at":"2025-10-13T00:43:20.654Z","avatar_url":"https://github.com/jorjishasan.png","language":"Python","readme":"# ROLE: Software Engineer \n\n![Certificate](./Certificate.png)\n\nCheckout the solutions at one go 🚀\n\n## SQL: The Perfect Arrangement\n\n```sql\nSELECT ID, FIRST_NAME, LAST_NAME\nFROM CUSTOMERS\nWHERE LENGTH(CONCAT(FIRST_NAME, LAST_NAME)) \u003c 12\nORDER BY LENGTH(CONCAT(FIRST_NAME, LAST_NAME)), CONCAT(FIRST_NAME, LAST_NAME), ID;\n```\n\n## Problem Solving: Conference Schedule\n\n```python\ndef maxPresentations(scheduleStart, scheduleEnd):\n    # Combine start and end times into tuples for easier sorting\n    presentations = [(start, end) for start, end in zip(scheduleStart, scheduleEnd)]\n\n    presentations.sort(key=lambda x: x[1])\n    \n    max_presentations = 0\n    current_end_time = 0\n    \n    for start, end in presentations:\n        # If the current presentation starts after the previous one ends, attend it\n        if start \u003e= current_end_time:\n            max_presentations += 1\n            current_end_time = end\n    \n    return max_presentations\n\n```\n\n## REST API: Patient's Medical Record\n\n```python\nimport requests\n\ndef getAverageTemperatureForUser(userId):\n    base_url = \"https://jsonmock.hackerrank.com/api/medical_records\"\n\n    page = 1\n    total_temps = 0\n    total_records = 0\n\n    while True:\n        response = requests.get(f\"{base_url}?userId={userId}\u0026page={page}\").json()\n        data = response[\"data\"]\n\n        if not data:\n            break\n\n        for record in data:\n            body_temperature = record.get(\"vitals\", {}).get(\"bodyTemperature\", 0)\n            total_temps += body_temperature\n            total_records += 1\n\n        if page \u003e= response[\"total_pages\"]:\n            break\n\n        page += 1\n\n    if total_records == 0:\n        return \"0\"\n\n    average_temp = round(total_temps / total_records, 1)\n    return str(average_temp)\n```\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjorjishasan%2Fsoftware_engineer-hackerrank","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjorjishasan%2Fsoftware_engineer-hackerrank","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjorjishasan%2Fsoftware_engineer-hackerrank/lists"}