Tuesday, August 30, 2011

Access mediafire , megaupload in India

Rapidshare , Mediafire and other file sharing sites are blocked in india . Video lovers who watches their favorite videos or likes to share interesting clippings on file sharing sites such as Rapidshare, Mediafire, Megaupload, Hotfile, Fileserve and more will not be able to do so henceforth in India. When they tried to access such file sharing websites, there will be an error message “this site has been blocked as per instructions from Department of Telecom (DOT).

If you want to bypass the DOT blocked file sharing websites in India, you can use these methods:

Thursday, August 4, 2011

Dutch National Flag Problem

Given `N' objects coloured red, white or blue, sort them so that objects of the same colour are adjacent, with the colours in the order red, white and blue.
The technique to solve this problem is three way partitioning ie representing Red with 0 , White with 1 and Blue with 2 . The variables are lo , mid , hi .
lo = 1st position where value is not 0 .
hi = 1st position from end where value is not 2 .
mid = position past lo where value is not 1 .
sourcecode :

Wednesday, August 3, 2011

Worth Sharing ...

i just couldn't resist sharing this...

Curriculum Vitae

Any Finally ...
Stay Motivated
Ten Commandments for Peace of Mind

10 reasons why Computer is better than GirlFriend :)

Got it from a blog.. worth sharing :P . Anyway this one gives me hope :D

1.) It doesn’t talk back to you. At best it beeps or gives you the silent treatment.

2.) It provides you with more information than any girl will ever know.

3.) When you upgrade you know the costs up front.

4.) You can stare at tons of other girls and your computer will never get mad at you.

5.) You can shut her down whenever you get tired of her.

6.) Troubleshooting your computer is much easier than your GF.

7.) Your computer holds many valuable bits of information about your past and still likes you.

8.) You can press your computers buttons without any worry of repercussions.

9.) Your computer won’t sleep with your best friend or cheat on you.

10.) Your computer will cost a lot less than any girlfriend!

And this one is too funny :
There are basically 7 TYPES OF GIRLS :
  1.   HARD DISK Girls: Remember everything forever....
  2.   RAM Girls: Forgets about you the moment you go away from her.
  3.   SCREENSAVER Girls: Just for looking.
  4.   INTERNET Girls: Difficult to access.
  5.   SERVER Girls: Always busy when needed.
  6.   MULTIMEDIA Girls: Makes horrible things looks beautiful.
  7.   VIRUS:These type of girls are normally called ‘WIFE’ once enters in your system don’t let you free even after format..

Tuesday, August 2, 2011

Write a program to check the binary representation of an integer ispalindrome or not ?

Eg :
4 --To Binary--> 100 : Not palindrome
5 --To Binary--> 101 : palindrome
simple approach:
1. reverse the bits of given number. O(log(n))
2. compare both the numbers.  
3. if same then palindrome else not. source code:
#include <iostream>
using namespace std;

int reverse(int n)
int i = 0, j = n;
i = (i << 1) | (j & 1);
j >>= 1;
int main()
int rev , n=5;
rev = reverse(n);
rev==n?cout<<"palindrome":cout<<"not palindrome";
return 0;

Total Pageviews