Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
How can we find the brightness at every position on the street?
We can use a hash table to store the change in brightness from the previous position to the current position.