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


Array Restoration getting WA even after using sparse table

I am trying to solve Array Restoration on codeforces for such a long time and I am getting WA on 6th test. I used sparse table for finding the minimum of the range in O(1) and it took O(nlogn) for preprocessing the sparse table. I don't know why I am getting WA at it. Please anyone help me.......

Question Link

Submission link

This is my 10th submission by the way.....

asked 09 Sep '18, 12:57

amstan's gravatar image

accept rate: 0%

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: 09 Sep '18, 12:57

question was seen: 52 times

last updated: 09 Sep '18, 12:57