Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project