Friday, September 07, 2007

Indian programmers and other Asian programmers

If i got this scenario as a algorithm question:

You have two jugs, you are standing beside a well. One jug has a content of 3 ltrs and the other one has a content of 5 ltrs.

How can you get just 4 liters of water using only these two jugs?

============================================================

Indian programmers will go:

Option 1.

Solution:
1) fill the 3ltr can first and fill the same to 5ltr can. So 5ltr can has 3ltrs and 3 ltr can is empty.
2) again fill 3 ltr can and fill 5ltr for remaining 2ltrs. So 5ltr can has 5 ltrs and 3 ltr can has 1 ltr.
3) pour off/empty 5ltr can, fill the 5ltr can with the contents of 3ltr can. So 5ltr can has 1 ltr and 3ltr can is empty.
4) fill the 3ltr can and pour the same to 5ltr can. So 5ltr can has 4ltrs. the desired one:)



option 2:

Fill the 3 Ltrs Jug with water and put into 5 Ltrs jug.
Now 3 Ltrs jug is empty and there is 3 Ltrs water in 5 Ltrs Jug.
Again fill 3 Ltrs Jug with water and put into 5 Ltrs jug.
This time 1 Ltrs remain in 3 Ltrs jug and 5 Ltrs jug is full of water.
waste the water of 5 Ltrs jug, Now 5 Ltrs Jug is empty and 3 Ltrs Jug contain 1Ltr of water.
Put the 1 Ltr water of 3Ltrs jug into 5 Ltr jug which was empty.
Now 3 Ltrs jug is empty and 1 Ltr of water in 5 Ltrs jug.
Again fill the jug of 3Ltrs and put into 5 Ltrs jug(1 Ltr already in 5 Ltrs jug)
It will now become 4 litre.


and after that, they program.

================================================

Other Asian programmers:



































Get a 4litre jug and get it over with......





( we are just plain lazy.... )

Friday, May 11, 2007

Love is

Love is……

Love is physical,
Love is spiritual,
Love is a mixed feeling,
But u can feel that it’s real.

Love is so caring
Love is so touching
Love is so soothing,
You can feel no aching.

Love is passion
Love is true
Love makes you take actions,
To find the mate to your soul.

Love is about responsibility
Love is about respect
Love is eternity
It will last longer than you expect.

Sometimes, it hurts, I know. Then you’ll say:

Love is torture
Love is pain
Love is something,
That is not easily explained

But, then again:

Love can be fun,
Love can even heal,
Love is an expression,
That can keep u head over heels

Last but not least:

Love your family,
Love your parents
Love your siblings,
Love them like any other things

Thank you for loving me. I love u too.
Happy Mother’s Day, Mom.


Tuesday, May 08, 2007

Your Blog

Read a very sad post today. It's about loneliness. So, i took 3 minutes out from my morning schedule to write a poem, for he/she who felt the same. Loneliness, my friend, it's not the end of the world.

here goes,


Your Blog

It takes my heart away,
it takes my breathe away,
it forces my empathy,
I offer you my sympathy.


In This World

Nothing is perfect,
life's always a defect,
Keep your hopes up high,
Don't let your hearts die.


Your Life

It's going to be wonderful,
It's going to be beautiful,
But no one say it's going to be easy,
Just have faith in destiny.

Wednesday, April 11, 2007

Thursday, March 29, 2007

我会想念你

我会想念你我不会忘记
永远想念你直到再相遇


说再见好难忍住泪水好难
离别这一刻我不甘心放手
我会好好过勇敢又坚强
那就像钱包丢掉所有烦恼
不要再回头走你该走的路
总会有一天我们会再相聚

我会想念你我不会忘记
永远想念你直到再相遇
我会想念你你不必担心
永远想念你直到再相遇

因为你善良因为你的天真
让我感觉到拥有你好幸福
你应该知道好舍不得你
流下的泪水一颗颗都是爱
最后的言语句句都是感伤
大声说再见我永远爱你

我会想念你我不会忘记
永远想念你直到再相遇
我会想念你你不必担心
永远想念你直到再相遇

Saturday, February 24, 2007