You are not logged in. Please login at to post your questions!


Chef Under Pressure - CHEFPRES TLE

can you please tell me why LCA by RMQ giving TLE , and lca by naive approach is AC .i think logarithmic time must AC then leaner O(N) for every query.

LCA by RMQ : my source-rmq-TLE

LCA by naive : my source-naive-AC

asked 19 Feb '15, 19:13

joney_000's gravatar image

accept rate: 0%

edited 19 Feb '15, 19:14

toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:


question asked: 19 Feb '15, 19:13

question was seen: 695 times

last updated: 19 Feb '15, 19:14