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

×

What could be the more efficient way of solving the 'sequence land' problem?

I have been trying to solve the problem SEQUENCE LAND and I have got ac but the complexity of My Solution is O(N^2). I would like to know what would be the more efficient way of solving this problem. Constraints in this problem were fairly small, my solution would have not worked otherwise.

asked 11 Mar '18, 10:04

arpit728's gravatar image

1★arpit728
6831562
accept rate: 10%

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,650
×1,197

question asked: 11 Mar '18, 10:04

question was seen: 152 times

last updated: 11 Mar '18, 10:04