Add 'Syntactic Sugar' With 'Fluent Interface'

'Fluent Interface' is a Object Oriented Programming technique for adding more 'Syntactic Sugar' to the language. This just makes the code more 'Readabale' and 'Expressible'...just shows the flow of logic, in a clear way. This term (Fluent Interface) was first coined by Eric Evans and Martin Fowler....

» [Read More]

GCJ 2012 - Recycled Numbers

Below is the problem statement for 'Recycled Numbers' from 'Google Code Jam - 2012': Problem Statement-----------------Do you ever become frustrated with television because you keep seeing the same things, recycled over and over again? Well I personally don't care about television, but I...

» [Read More]

GCJ 2012 - Dancing With Googlers

Below is the problem statement for 'Dancing With Googlers' from 'Google Code Jam - 2012': Problem Statement----------------------You're watching a show where Googlers (employees of Google) dance, and then each dancer is given a triplet of scores by three judges. Each triplet of...

» [Read More]

GCJ 2012 - Speaking In Tongues

Below is the problem statement for 'Speaking In Tongues' from 'Google Code Jam - 2012': Problem Statement-----------------We have come up with the best possible language here at Google, called Googlerese. To translate text into Googlerese, we take any message and replace each English letter...

» [Read More]

Priority Queue in Java

'Priority Queue' is a data structure similar to Queue, but pulls/pops out the first element with top priority first (FPIFO, for convenience), whereas Queue is just 'First In First Out' (FIFO). This data structure can be used in a variety of applications like Scheduling, Bandwidth Management, Discrete Event Simulation,...

» [Read More]