11592 - Bulb inside a Grid (II)
Moderator: Board moderators
11592 - Bulb inside a Grid (II)
Is it a O(N*M) solution ok here ? If not, how much it can be better? O(M) ?
Re: 11592 - Bulb inside a Grid (II)
O(M logN) with probably a high constant factor...
-
- New poster
- Posts: 15
- Joined: Thu Jun 18, 2009 12:01 pm
- Contact:
Re: 11592 - Bulb inside a Grid (II)
I just got AC (3s) with O(M*sqrt(N)) algorithm.