{"id":23126194,"url":"https://github.com/bab95/activeauthor","last_synced_at":"2025-09-10T20:48:31.530Z","repository":{"id":52834976,"uuid":"358703640","full_name":"Bab95/ActiveAuthor","owner":"Bab95","description":"Hackerrank Problem Most Active Authors","archived":false,"fork":false,"pushed_at":"2021-04-17T06:32:02.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-11T05:35:05.704Z","etag":null,"topics":["interview-questions","java","json-api"],"latest_commit_sha":null,"homepage":"","language":"Java","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/Bab95.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}},"created_at":"2021-04-16T19:45:34.000Z","updated_at":"2021-04-17T06:30:58.000Z","dependencies_parsed_at":"2022-08-23T05:31:20.008Z","dependency_job_id":null,"html_url":"https://github.com/Bab95/ActiveAuthor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Bab95/ActiveAuthor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bab95%2FActiveAuthor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bab95%2FActiveAuthor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bab95%2FActiveAuthor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bab95%2FActiveAuthor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bab95","download_url":"https://codeload.github.com/Bab95/ActiveAuthor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bab95%2FActiveAuthor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267770735,"owners_count":24141902,"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-07-29T02:00:12.549Z","response_time":2574,"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":["interview-questions","java","json-api"],"created_at":"2024-12-17T08:29:05.837Z","updated_at":"2025-07-29T22:11:20.239Z","avatar_url":"https://github.com/Bab95.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Most Active Author\n\nIn this challenge, the REST API Contains information about\na collection of users and article they created. Given the\nthreshold value, the goal is to use the API to get the list\nof most active authors. Specifically, the list of usernames\nof the users with submission count strictly greater than the\ngiven threshold. The list of usernames must be returned in the\norder the users appear in the results.\n\nTo access the collection of users perform HTTP GET request to\n\nhttp://jsonmock.hackerrank.com/api/article_users?page=\u003cpageNumber\u003e\nwhere \u003cpageNumber\u003e is an integer denoting the page of the result\nto return.\n\nFor example, GET request to:\nhttp://jsonmock.hackerrank.com/api/article_users/search?page=2\nwill return the second page of the collection of users. Page are\nnumbered from 1, so in order to access the first page, you need to\nask for page number 1.\n\nThe response to such request is a JSON with the following 5 fields\n\npage: The current page of the results\nper_page: The maximum number of users returned per page.\ntotal: The total number of users on all pages of the result.\ntotal_pages: The total number of pages with result.\ndata: An array of objects containing users returned on the request\npage.\n\nEach user record has the following schema:\n\nid: unique ID of the user.\nusername: the username of the user\nabout: the about information of the user.\nsubmitted: total number of articles submitted by user.\nupdated_at: the date and time of the last update to this record.\nsubmission_count: the number of submitted articles that are approved.\ncomment_count: the total number of comments the users made.\ncreated_at: the date and time when the record was created.\n\nFunction description\n\nComplete the function getUsernames in the editor below.\ngetUsernames has the following parameters(s):\nthreshold: integer denoting the threshold value for the number of\nsubmissino count.\n\nThe function must return an array of strings denoting the usernames\nof the users whose submission count is strictly greater than the threshold.\nThe usernames in the array must be ordered in the order they appear in the API\nresponse.\n\nSample Output\n\nepaga\npanny\nolalonde\nwisNorCan\ndmmalam\nreplicatorblog\nvladikoff\nmpweiher\ncoloneltcb\nguelo\n\nExplanation\n\nThe threshold value is 10 so the result must contain usernames\nof users with the submission count value greater than 10. There are\n10 such users and their usernames in order they first appear in the\nAPI response are listed in Sample Output","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbab95%2Factiveauthor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbab95%2Factiveauthor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbab95%2Factiveauthor/lists"}