Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/randhir200/neelam-s-journey
Neelam has N friendsstudying in various schools. She wants to find a new friend in(N+1)th school. Assume all schools are separated by 1 unit distance. To reach(N+1)th school she has to board a bus. The ith school would cost ofC[i]rupees to travel 1 unit of distance. In other words, the bus fare to travel from the ith school to the jth school isabs(i – j ) * C[i]rupees. The task is to find the minimum bus fare to travel from school 1 to school(N + 1)i.e. beyond the last school.
https://github.com/randhir200/neelam-s-journey
Last synced: 1 day ago
JSON representation
Neelam has N friendsstudying in various schools. She wants to find a new friend in(N+1)th school. Assume all schools are separated by 1 unit distance. To reach(N+1)th school she has to board a bus. The ith school would cost ofC[i]rupees to travel 1 unit of distance. In other words, the bus fare to travel from the ith school to the jth school isabs(i – j ) * C[i]rupees. The task is to find the minimum bus fare to travel from school 1 to school(N + 1)i.e. beyond the last school.
- Host: GitHub
- URL: https://github.com/randhir200/neelam-s-journey
- Owner: Randhir200
- Created: 2022-08-02T17:09:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-02T17:09:06.000Z (over 2 years ago)
- Last Synced: 2024-11-06T03:46:56.823Z (about 2 months ago)
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0