Company: Agoda_15dec
Difficulty: medium
TV Shows API Problem body { font-family: sans-serif; line-height: 1.6; } h1, h2, h3 { border-bottom: 1px solid #ccc; padding-bottom: 5px; } code { background-color: #f4f4f4; padding: 2px 6px; border-radius: 4px; } pre { background-color: #f4f4f4; padding: 10px; border-radius: 4px; } ul { list-style-type: disc; margin-left: 20px; } Fetch TV Show Information Description Given a start year and an end year, query an API to find and return a list of the names of all TV series that started production in startYear or later and ended production in endYear or earlier. If the endYear is -1 , the shows should still be in production. The final list of names must be sorted in alphabetical order. You will need to complete the function showsInProduction(int startYear, int endYear) . Endpoints Use the HTTP GET method to fetch information about recent TV shows. The results are paginated. Base URL: https://jsonmock.hackerrank.com/api/tvseries Pagination: To access a specific page, append the query param