You are not logged in. Please login at www.codechef.com 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

4★joney_000
7928
accept rate: 0%

edited 19 Feb '15, 19:14

toggle preview
Preview

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×1,218
×720
×253
×228
×56
×19

question asked: 19 Feb '15, 19:13

question was seen: 695 times

last updated: 19 Feb '15, 19:14