Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
abirler
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
abirler
8y ago
I think the O(row * col * light_count * dist) algorithm could be optimized to run in O(row * col * light_count). The idea is, imagine the light is coming from the left, and our height map consists of a single row that looks like (0,5,2,7,1)