{"id":15558976,"url":"https://github.com/sjdev2212/mob-programming8-3","last_synced_at":"2026-05-31T19:30:17.031Z","repository":{"id":134990818,"uuid":"467552772","full_name":"sjdev2212/mob-programming8-3","owner":"sjdev2212","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-08T14:52:52.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T04:45:59.686Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/sjdev2212.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":"2022-03-08T14:46:31.000Z","updated_at":"2022-03-08T14:50:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"53254f33-77b6-42a5-90b7-59d83005d003","html_url":"https://github.com/sjdev2212/mob-programming8-3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjdev2212%2Fmob-programming8-3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjdev2212%2Fmob-programming8-3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjdev2212%2Fmob-programming8-3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjdev2212%2Fmob-programming8-3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sjdev2212","download_url":"https://codeload.github.com/sjdev2212/mob-programming8-3/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240165262,"owners_count":19758347,"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","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":"2024-10-02T15:41:16.640Z","updated_at":"2026-05-31T19:30:16.973Z","avatar_url":"https://github.com/sjdev2212.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mob-programming8-3\n\nWhen a contiguous block of text is selected in a PDF viewer, the selection is highlighted with a blue rectangle. In this PDF viewer, each word is highlighted independently. For example:\n\nPDF-highighting.png\n\nThere is a list of\ncharacter heights aligned by index to their letters. For example, 'a' is at index and 'z' is at index . There will also be a string. Using the letter heights given, determine the area of the rectangle highlight in assuming all letters are\n\nwide.\n\nExample\nThe heights are and . The tallest letter is high and there are letters. The hightlighted area will be so the answer is\n\n.\n\nFunction Description\n\nComplete the designerPdfViewer function in the editor below.\n\ndesignerPdfViewer has the following parameter(s):\n\n    int h[26]: the heights of each letter\n    string word: a string\n\nReturns\n\n    int: the size of the highlighted area\n\nInput Format\n\nThe first line contains\n\nspace-separated integers describing the respective heights of each consecutive lowercase English letter, ascii[a-z].\nThe second line contains a single word consisting of lowercase English alphabetic letters.\n\nConstraints\n\n, where\nis an English lowercase letter.\ncontains no more than\n\n    letters.\n\nSample Input 0\n\n1 3 1 3 1 4 1 3 2 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5\nabc\n\nSample Output 0\n\n9\n\nExplanation 0\n\nWe are highlighting the word abc:\n\nLetter heights are\n, and . The tallest letter, b, is high. The selection area for this word is\n\n.\n\nNote: Recall that the width of each character is\n\n.\n\nSample Input 1\n\n1 3 1 3 1 4 1 3 2 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 7\nzaba\n\nSample Output 1\n\n28\n\nExplanation 1\n\nThe tallest letter in\nis at . The selection area for this word is .\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjdev2212%2Fmob-programming8-3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjdev2212%2Fmob-programming8-3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjdev2212%2Fmob-programming8-3/lists"}