USACO setup

Posted on Mon 28 March 2016 in Programming • Tagged with programming, usacoLeave a comment

USACO is fun. Though it is fairly easy to get up and running on the platform, there remain a few repetitive steps during problem solving that can be automated. Here is a brief summary of my automation steps:

  1. Use a template. Here is mine. Save it as template.cpp:
 1 ...
Continue reading

Hello USACO

Posted on Sun 27 March 2016 in Programming • Tagged with programming, usacoLeave a comment

I love competitive programming. I love the anticipation while I wait with my fingers crossed after submitting a solution. And the rush that follows after getting an ‘AC’.

After stagnating near the 60-70th percentile for eons, I have decided to dedicate focused practice time for competitive programming. The next series ...

Continue reading

Facebook Hacker Cup 2015 Qualification Round Solutions

Posted on Mon 12 January 2015 in Programming • Tagged with programming, facebook hackercup 2015Leave a comment

Facebook recently organized the qualification round of Hacker Cup 2015. They posed some interesting problems and anyone who could get at least one problem right can move to the next round.

I managed to get a rank of 217, with a perfect score of 100. I have posted my solutions ...

Continue reading

Generating Power Set

Posted on Mon 05 January 2015 in Programming • Tagged with programmingLeave a comment

Iterating over all possible subsets of a set is a problem that can arise not only in competitive programming but also in day-to-day programming. While the total number of possible subsets is quite huge (2^n where n is the cardinality of the input set), often we want an algorithm ...

Continue reading

Implementing Service Oriented Architecture using Http is a horrible idea

Posted on Sun 16 November 2014 in Programming • Tagged with programming, infrastructureLeave a comment

Service Oriented Architecture is a commonly used design pattern in distributed and enterprise applications. It involves the creation and use of independent services that work together to produce the desired result. The most important benefits, of course, are separation of concerns and the ability to scale each service independent of ...

Continue reading