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

×

Help regarding spoj problem ALIENS

Due to the time limit in the question, this question is to be done in O(n), but I can't find any problem in my code, but its giving WA there. I have tried many test cases on my own. I am new to programming, so couldn't understand the sliding window algo written in the comments. Thanks in advance!

Here is my solution -> https://ideone.com/bg4CIF

asked 24 Feb '15, 00:54

arorayushi's gravatar image

2★arorayushi
11
accept rate: 0%

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:

×21

question asked: 24 Feb '15, 00:54

question was seen: 1,876 times

last updated: 24 Feb '15, 00:54