Use the following undirected graph - nodes can be visited only once:
- a. Write a function that returns all the possible paths between A-H.
- b. Write a function that returns the least number of hops (shortest path) between A-H.
Get list of people
- Method
GET
- Endpoint
https://api.json-generator.com/templates/-xdNcNKYtTFG/data
- API Key (Bearer Token):
b2atclr0nk1po45amg305meheqf4xrjt9a1bo410
(Don't worry. It is a public key. If it doesn't work, do let us know)
curl --request GET -H "Authorization: Bearer R4iN..." --url https://api.json-generator.com/templates/tAu-9/data
- Retrieve list of people from the API
- Display list of people.
- Show details when user select an item in the list.
- Add marker on the map based on the provided latitude/longitude in
location
. - Display the person name on the marker when it is tapped.
- Source code must be stored in a git repository (github / gitlab / bitbucket)
- You are free to use any libraries
- Test cases are required
- Setup instruction is required
- Expect the code is production ready
- Only accept mobile application, web app is not allowed
For your reference only, you can have your own design and UX