Largest Pyramid

  • + 0 comments

    The test data for this problem is very strong. Even my O(nmmin(n, m)) failed some tests. In the end I profiled my code and found the bottleneck is log2() in my Sparse table lookup. The value of log2(x) could be precalculated, or implemented with a tricky one(https://stackoverflow.com/a/11398748/4140668).

    Vote for Difficulty:Hard due to its test data