Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/randhir200/signal-s-capacity
There are many signal towers present in Bangalore.Towers are aligned in a straight horizontal line(from left to right) and each tower transmits a signal in the right to left direction. Tower X shall block the signal of Tower Y if Tower X is present to the left of Tower Y and Tower X is taller than Tower Y. So,the power of a signal of a given tower can be defined as : {(the number of contiguous towers just to the left of the given tower whose height is less than or equal to the height of the given tower) + 1}. You need to write a program that finds the power of each tower.
https://github.com/randhir200/signal-s-capacity
Last synced: 2 days ago
JSON representation
There are many signal towers present in Bangalore.Towers are aligned in a straight horizontal line(from left to right) and each tower transmits a signal in the right to left direction. Tower X shall block the signal of Tower Y if Tower X is present to the left of Tower Y and Tower X is taller than Tower Y. So,the power of a signal of a given tower can be defined as : {(the number of contiguous towers just to the left of the given tower whose height is less than or equal to the height of the given tower) + 1}. You need to write a program that finds the power of each tower.
- Host: GitHub
- URL: https://github.com/randhir200/signal-s-capacity
- Owner: Randhir200
- Created: 2022-05-21T18:53:06.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-05-21T18:58:33.000Z (over 2 years ago)
- Last Synced: 2024-11-06T03:46:54.571Z (about 2 months ago)
- Language: JavaScript
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files: