SETTER: Lalit , AMRENDRA , Kuldeep , Chandan , Ankit , Arjit TESTER: Lalit

IndiaHacks 2014

Challenge Over

OPENS AT: Mar 29, 2014, 09:30 AM

CLOSES ON: Mar 30, 2014, 09:29 AM

DURATION: 23h 59m


Social Share


HackerEarth kicks off this summer with India's largest online programming contest - IndiaHacks 2014. We invite all top hackers to a 24 hour programming contest with 7 challenging problems.

We also conducted IndiaHacks last year, which was a massive success and saw a huge participation from competitive programmers from all over the country. This year is going to be bigger and and better!

The challenge will run from 29 Mar 2014, 08:00 PM to 30 Mar 2014, 08:00 PM. IndiaHacks will be run in partnership some of the biggest tech companies in India where they are going to give prizes/swags to the top developers.


The question format is similar to that of last year's IndiaHacks. This years IndiaHacks will be more challenging. It will mainly consist of -

You can practice last year's IndiaHacks problems here -


There are some exciting prizes up for grabs for the winners of IndiaHacks! The first 3 winners will win -

1) INR 10,000 Cash prize vouchers from Flipkart
2) One Intel power Samsung Galaxy Tab 3 (top 5 will get this)

And that's not all!

Rank 6 - 10 will win an Intel powered Acer Iconia Tablet.
Rank 11 - 15 will win Apple iPod Shuffles!

And there is more!

AWS is giving $50 AWS credits to 200 developers from IndiaHacks.
Flipkart is giving away INR 2000 prize vouchers for people with rank 4 to 50.


The participating companies are dishing out direct job offer interviews to top performing eligible candidates from IndiaHacks. If you have a good IndiaHacks rank and you are eligible for a job, you can sit an interview for software developer role at Flipkart and Amazon.

Also, the top X candidates will get a wildcard entry to any HackerEarth hiring challenge, subject to eligibility. If you're eligible for a job opening on HackerEarth, and you're in the first X rank in IndiaHacks, you don't have to take the test. You can use your wildcard entry and automatically put your name in the final shortlist.

To find X, compile this -


HackerEarth would like to thanks it's sponsors for IndiaHacks, who have contributed greatly with amazing prizes for the winners and participants -


Flipkart went live in 2007 with the objective of making books easily available to anyone who had internet access. Today, they're present across various categories including movies, music, games, mobiles, cameras, computers, healthcare and personal products, home appliances and electronics, stationery, perfumes, toys, apparels, shoes – and still counting!

Flipkart was founded in 2007, by Sachin and Binny Bansal and headquartered in Bangalore. It is considered as the e-commerce company that made online shopping popular in India. Flipkart's website on it's own, is one of the top 10 Indian websites.

Amazon Web Services

Amazon Web Services is a collection of remote computing services that together make up a cloud computing platform, offered over the Internet by The most central and well-known of these services are Amazon EC2 and Amazon S3.

Through a combination of statistics, testimonials and dozens of infrastructure-oriented sessions AWS successfully proved their dominance of web services. Just how far ahead is AWS in this space? Here are 6 incredible stats about AWS's awesomeness

  • According to Gartner, AWS has 5 times more deployed cloud infrastructure as their next 14 competitors aggregate
  • In a day, AWS adds as much new infrastructure as they had used to run the entire Amazon business when it was a $7B business
  • 45% of AWS partners are also Microsoft certified partners
  • AWS supports over 600 government agencies and 2400 educational institutions
  • AWS’ security certification and compliance list is jaw-droppingly long. With every credential out there from SSAE16 to FedRAMP to HIPAA it’s no wonder they are the provider of choice to security-conscious organizations
  • AWS partner, Netflix, accounts for up to ? of Internet traffic during peak usage times

( source -

In additon, AWS is organizing a webinar on:

Date: 31st March
Time: 1-2pm
Topic: Hackathon tips and AWS

This is an interesting webinar on how you can get your idea to production in 60 Minutes using AWS Elastic Bean Stalk and other on-demand services to deliver a highly scalable and available application.

Registration link:


29th March, 2014, 21:00 UTC: All previous submissions of Reverse primes have been rejudged. Our checker system had a little glitch with large outputs, which earlier affecte...



  1. For the programming questions in the test, you need to choose one language from the given list and attempt.
  2. All inputs for the programming problem are from STDIN and outpu...
View All Notifications