ARTICLEViews: 9275Share  Posted by - Anonymous

Interview Question - Given a search string, fetch all movies results from the api

Given a string `substr`, getMovieTitles() must perform the following tasks:


1. Query https://jsonmock.hackerrank.com/api/movies/search/?Title=substr (replace substr).

2. Initialize the titles array to store total string elements. Store the Title of each movie meeting the search criterion in the titles array.

3. Sort titles in ascending order and return it as your answer.


let me know any other solution for this problem


Auto Suggestions & Related Videos -


Given a search string, fetch all movies results from the api Helpful? Please support me on Patreon: ...

Learn Fetch API In 6 Minutes

HackerRank API Interview Question and Answer

Urllib - GET Requests || Python Tutorial || Learn Python Programming

React autocomplete search from API

Views -