Posts

One evening story, small things

Image
Yet another important chapter of life is made of small things that we, sometimes, ignore. Another day, a holiday, it was around 4 in the evening. I was preparing to take bath, and while going towards the bathroom, I decided to take a visit to the 'popular' Pangay's room. He was banging his head with his computer screen, trying to find some software on the internet, which I doubt he could find in one life (Thank God he knows how to work on a computer). Going by the brand, he owns a Dell-Pavillion-'some model', with a core i3 inside, but his computer seemed to be beaten by an old pentium. Anyway, it was not his computer's fault, sometimes it depend on who works on it.

A football match in the hostel

It's around 5 in the evening. I am feeling a little hungry. I gathered some known-mates, and we are going to Surendra's. Now we are at Surendra's. We are 4 in number, me, Patlu, Motu, and another weird guy, popularly known as Pangay due to his unusual involvement with the hostel staff member, Rajbir ;) We ordered two tandoori paranthas, and a tea. The Patlu and Motu are unwilling to eat, as they already had a good time in the market. The prantha arrival took considerable time, so in the meantime we took an argument over the high rates with the shop owner (or whoever he was, sitting on the counter). Paranthas arrived. The "Pangay" guy is eating at a faster pace than me, so I am in worry that he will eat my parantha after finishing his own. So I took a piece of his parantha saying that for sake of checking taste. And the fear turned real. The "Pangay" guy took a piece of my parantha, and that too the very central piece.. and suddenly after that he t...

Logic Puzzles that will troll your mind!

Image
Logic Puzzles 1. The Missing Piece Below the four parts have been reorganized. The four partitions are exactly the same in both arrangements. Why is there a hole? Hint:  This is not an optical illusion. If you print out the puzzle, cut out the pieces and rearrange them, you get the exact same dilemma. Answer:  The gradient of the teal hypotenuse is different than the gradient of the red hypotenuse. 2. Four Gallons You have a three gallon and a five gallon measuring device. You wish to measure out four gallons. Answer:  Fill the five gallon container. Pour all but two gallons into the three gallon container. Empty the three gallon container. Put the two remaining gallons from the five gallon container into the three gallon container . Fill the five gallon container one more time. Pour one gallon from the five gallon container by filling the three gallon container. Now the five gallon container contains four gallons. 3. The Islanders ...

Hanging the Boots of Friendship

“The truth is, everyone is going to hurt you. You just got to find the ones worth suffering for.”  ―  Bob Marley Not just Bob Marley but many other renowned personalities have also given their loveable, generous, fascinating views about friendship time to time and we generally find them very interesting. But in reality are you really ready to “suffer” non reciprocally? And more interestingly, how do you know who worth suffering or even more basic who actually is your friend? How do you define or what are your standards for friendship? If I know a person for years, we talk regularly, we care, we talk about world, universe, crushes, may be love, politics, life stories,  incidents, we call each other friends; does that mean we really are friends? It may seems like we are friends because we think that we are doing nearly everything that friends do so the next question; is that person worth my suffering?  If not, then may we need a different parameter for friends...

'Self-destructing' Snapchat and Facebook Poke messages can actually be copied, but that shouldn't be a surprise. Protect yourself.

Image
The current kerfuffle over Snapchat and Facebook's  'self-destructing' videos actually being saveable  is a great thing to see, because it reminds people of why they should never sext unless they want their junk splattered all over whatever site the porn impresario and professional jerk Hunter Moore is running this week. Repeat after me: Anything you put on the Internet is potentially public. P.S. Cell phones count as the Internet. This is pretty much a fixed rule. Digital data can be copied. If it's only on your own computer, you have control of it. But as soon as it's shared with anyone —  anyone  — that person can copy and spread it. Or, as the always witty Chris Davies  said on Twitter , "Keep putting your genitals in front of people & they'll inevitably go viral." Oh, Those Teenagers Teenagers overlook this because teenagers are actually clinically brain damaged. They're biologically programmed to ignore risk and act on emotio...

100-year-old deathbed dreams of mathematician proved true

Image
Srinivasa Ramanujan  (Emory University) While on his death bed, the brilliant Indian mathematician Srinivasa Ramanujan cryptically wrote down functions he said came to him in dreams, with a hunch about how they behaved. Now 100 years later, researchers say they've proved he was right. "We've solved the problems from his last mysterious letters. For people who work in this area of math, the problem has been open for 90 years," Emory University mathematician Ken Ono said. 'For a brief window of time, he lit the world of math on fire.' - Emory University mathematician Ken Ono Ramanujan, a self-taught mathematician born in a rural village in South India, spent so much time thinking about math that he flunked out of college in India twice, Ono said. But he sent mathematicians letters describing his work, and one of the most preeminent ones, English mathematician G. H. Hardy, recognized the Indian boy's genius and invited him to ...

Amazon Interview Questions, all rounds

Round 1 (Telephonic)  Q1. For a given number, find the next greatest number which is just greater than previous one and made up of same digits. Q2. Find immediate ancestor of a given Node Q3. Clone the linked list having an extra random pointer in nodes which is pointing random node in the list. Round 2 (F2F)  Q1 In a binary tree, a random pointer is given in each node. If this pointer pointing other than any successor of the node then set it as NULL. Otherwise let it remain untouched. Write code. Q2. You will be given the number of pairs of parenthesis. Find out the total possible valid unique combinations and there should not be any duplicity. Write code Round 3 (F2F)  Project and some questions related to it. Q1 Given an in-order traversal of a special binary tree having property that the node is always greater than its left and right child. Construct the tree and write code. Q2 Find top 10 trending words inserted by users in sites like twitter. Only alg...