Posts

Showing posts from March, 2012

Efficient Programming?

Image
Hola! What is an efficient program? In a layman term - A program which does, what its "supposed to do", in a "fast" and "cheap" way... A program can be very fast... If we decrease the number of loops inside it By choosing the "right data-structure " which can be used to efficiently manipulate the data, the program uses etc... A program can be cheap... If it consumes less memory (RAM space while it runs) By using as less "Objects" as we can Or by again using right data-structure Ok... theory.. its always boring...  :-) Lets jump on to solving an interesting problem... Take up a role of   Server-side Developer of a reputed website company, where the first task given to you is to validate the user password! Here is the requirement - You should reject a password if it contains a "repetitive sequence". A password is said to contain "repetitive sequence" if it has same sequence repeated one after