Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
leetthrowaway
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
leetthrowaway
5y ago
I don't think you have it. Say you have an input like this: [3,2,100,100,2,3] So you start on the outsides working in with your method, and you will stop at the two outermost 3s, because the 2 is less area, and never make it to the inn
2.
▲
by
leetthrowaway
5y ago
> I regularly see similar problems at work. No way anyone gets that in 30 minutes without having seen it exactly before. Moving pointers in from the sides, according to Y height, both at the same time when equal, and then not using that
3.
▲
Ask HN: How are you supposed to use LeetCode?
7 points
by
leetthrowaway
5y ago
|
17 comments