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

asked 24 Feb '15, 00:54

arorayushi'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: 24 Feb '15, 00:54

question was seen: 1,876 times

last updated: 24 Feb '15, 00:54