First Amazon Telephonic Interview

I had this opportunity to have interview with Amazon with the help of my friends, who referred me for SDE position.

Immediately after my friends’ reply that he has given my resume with a recruiter and I may get a call from recruiter, I got a call from some person with my interview schedule.

With a lapse of half an hour after schedule, my first interview started.

The interviewer was humble supportive one. After introductions, he straight away asked me questions one after another.

They were:

  1. Implement a stack with push, pull and findmin in O(1) time.
  2. There is an array of positive random integers. All the elements are repeated twice except for one. Find that element.
  3. Wap to stitch all the leaf nodes of a binary tree together. After stitching, the tree becomes a graph, and the stitched elements be stored in a list. Return the head node of the list.

I could quickly answer the first two ones, but had trouble writing working code for the third one. After several minutes passed. And my code messed up, I was asked to leave it. And the phone interview concluded.

With a gap of one hour, I had a second telephonic interview.

This time I was asked only two questions.

They were :

  1. Wap. There is a circular singly linked list, All elements are in ascending order. Insert a given number at its correct place in the list. The number is a random one.
  2.  There is a stair case, at each step, a person can either take two steps or one step. What is the total number of steps?

With the guilt of being unable to do the previous interview coding properly, here, I directly wrote the implementation part of the linked list, without even checking my implementation was a mere singly linked list and not a circular one. Also, missed the syntax errors like a semi-colon(;) at end of struct declaration, etc. And after correcting me for those mistakes, or rather blunders, the interviewer moved onto second question, and I was trying to solve it mathematically and come out with a polynomial expression, while the interviewer intended me to derive a recursive function out of it. After failing with it, the interviewer advised me to follow codechef, topcoder kind of websites and to do more practice.

Hours after interview, I received a mail saying, I am not offered a job/no call for further interview.

I can reapply in 6 months.

Waiting for my second turn now, and practicing for it.

1 Comment

Filed under about myself, geek

Adding a project on your machine to Github

Here is a step by step mini guide to host your local code onto github.

Create git repo locally

We need to add a repository for your project.

Git is a distributed version control system, so each machine has its own repository.

This is different to centralised version control systems like Subversion, which have a single, central, repository.

Go to your project

$ cd my_project

Initialise the repository

$ git init

You should see the following message:

Initialized empty Git repository in /path/to/my_project/.git/

Add all your files to the repo:

$ git add *

Check to see that there are changes to be committed:

$ git status

You should see something like this:

# On branch master
# Initial commit
# Changes to be committed:
#   (use "git rm --cached <file>..." to unstage)
#   new file:
#   new file:   my_project.module

In this case, and my_project.module are the files I have in my project.

Commit the files.

$ git commit -m "First commit"

You should see something like this:

[master (root-commit) 8201309] First commit
 2 files changed, 74 insertions(+), 0 deletions(-)
 create mode 100644
 create mode 100644 my_project.module

Create Github project

Head over to Github and create a new project.

Create new Github repo

Add Github as remote origin

Now we need to push our changes to Github.

Go to the Github page for the repo. You will should see the URL for the Github repo, which you need to copy.

Get URL of Github repo

Add this as the remote origin:

 $ git remote add origin

Pull from Github to local:

$ git pull origin master

And finally, push the code to Github:

$ git push origin master

You should see something like this:

Counting objects: 7, done.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 1.71 KiB, done.
Total 6 (delta 0), reused 0 (delta 0)
 ba2316b..3dae654  master -> master

That is all there is to it! Now your project is under version control and public on Github.

1 Comment

Filed under Random

It happens only in India

Today’s the best thing I’ve heard, read and seen over Indian Electronic media.
Outrage of common man has smashed the bounds and a Common man, yes the so emphasized aam aadmi, has shown his anguish.
The prices are ever increasing and so the basic necessities are being deprived by the lower middle class and below.
Time has come that the leaders start thinking in this regard. Sharad Pawar’s case is just the beginning.

Leave a comment

Filed under Random

ODBC in your own linux!!

Very odd to hear?

But its true.

We can now use JDBC-ODBC bridge, which I have discovered today.

I was told that ODBC can be only used with MS-Windows.

But I have found a way to make it possible to use ODBC in Ubuntu.

Check out here:

Leave a comment

Filed under geek

Lighter side of programming

hi there,

thinking that programming is all about writing lines of code, analysing them, compiling, running and validating them only!!!!!!

Think twice before you jump to conclusions (This is the phrase used by HCR that i like the most)

There are few web portals that actually show the lighter side of programming by depicting them as cartoons.

Please, whenever you feel like getting bored. Have a look at these:

Different stages of a programmer

are you like that?

Not so funny!!!!


Then what do you say about this:

This has hundreds of cartoons

a sample for you:

Still not happy:

Look at this site, this has N such particularly witty and funny cartoons with some logic(not always programming, a bit of science too):

and a sample:

and this:

Leave a comment

Filed under geek

A post finally after so many days…..

Hi there, its been a very long that i had written a post over here. few reasons for it are:

  • I have got a job and am working, so very less time left
  • I have started blogging in telugu
  • See my blog here :
  • I have very less time to access internet

So in this post am going to write about my experiences of life as in my case, its turning from a student stage to that of a employee stage.

No more campus chitchats, no more studies, no more home assignments

everything has vanished from me

I want to be a student back

But the work is pretty interesting too

if you make it interesting

Please learn that learning is a never ending process and we are students for ever.

so that means studies wont leave you anytime

take care

Leave a comment

Filed under miscellanious

Drupal Hyderabad’s first workshop — a great successful event indeed

This post comes rather a bit late, owing to my ‘busy’ness as my B.Tech life is ending soon and projects, seminars and all that stuff is overhead.

Still not to trouble you all, i’ll put this post as a brief report from the participant’s perspective.

The other blogs, i read were of a “different” perspective.

This blog entry is about the first workshop of Drupal-Hyderabad held on May 1,2 at VNR VJIET, Hyderabad.

I couldn’t attend the first day’s workshop, heard that there was this session on jQuery which i regret for not attending.

Anyway I attended the second day’s workshop, which was yummmmmmmmmmyyyyy , a hands on workshop, hope, Siva could taste his spaghetti code here 😛

I dont know what the scheduled time was, I arrived at 10 hoping to be the late among all, but the scene was reverse, by 11 all of them settled and rather basic and formal sessions went on installation of Drupal.

First there was a session was on hosting and web development basics by Medhamsh, am already a great fan of medhu — need say anymore. The last emphasis he made on localisation is what i want everyone to adopt from him.

There was then a session on Intro and Installation of Drush by Srujan — the Panda of Pandas. Then a session by Asif on Drupal basics, Sai Tanay’s session on modules was awesome, but he was a bit too speed and couldn’t elaborate due to time constraints. The following session was on themes by some jwala, i expected it to be a theme creation and customisation session, but it was a theme application and usage session — regrets here for me 😦 .

The final one by Ipsita, as short session as her name and as elegant as her looks, it was an awesome presentation, with scope for me to crack jokes.

drupal-hyderabad speakers at second day

Again regrets for me to not having heard from Siva about his case study, which couldd have I think inspired few more people.

The success was evident with the responses that came out from participants in Siva hosted feedback session.

I think that was not all. We had a great lunch.

A group photo with “cheese” in everyone’s mouth.

An adventurous lift rescue operation in which I was the victim.

The rainy day — thanks God.

the bus journey was awesome with Asif’s company. It was this workshop that I met Mahesh personally for the first time, I also met all my friends back at e-swecha summercamp — Hari, Siva, Bony, Kiran, Saiprachandan, Suresh, Sravanje and our great Madhu.

Later after all this was done, We — me, Siva, Mahesh, Hari and another friend had a lavish dinner at Paradise sponsored by Hari — I suppose.

The success of this event, whether one agrees with me or not is first attributed to Bony, then Siva, then Ipsita, then Hari, Medhu, Saitanay, Sree and all others.

I will cherish these  memories of course for a looooooooooooong time and Medhamsh’s inspiration will hold me.

Leave a comment

Filed under geek

College Day Celebrations

This was the first college day

and the last one for me at college

This reminds me of one thing

Everything right from banner to prizes to events was under my supervision

Kudos to Narayan Reddy sir for the success of the College Day function

Leave a comment

Filed under Random

Unforgettable Tragedy

I think no one can easily forget her smiling and childish face. Yes! she was none other than Tollywood Angel Soundarya who had made a good record of acting in more than 90 films in Indian cinema industry. Soundarya was born on 18th July 1971 in Bangalore as only daughter for Mr Sathyanarayana, well reputed cine director, and Mrs Manjula. Soundarya’s real name was Soumya. Though she was born in Karnataka she got her total popularity and success in Telugu films. She proved her talent by playing performance oriented charactors as well as portraying glamour roles. In a short period she reached the pinnacle of film career and secured stardom by playing opposite top heros of Indian film industry.

She had successful film career of 12 years and acted in her first Kannada film ‘Gandharva’ while she was studying in high school. Then she was studying her first year of MBBS. But the success of film ‘Ammoru’ changed her life and she discontinued her medical studies and paid full concentration in acting movies. In one Hindi film ‘Sooryavansham’ she acted opposite Bollywood super star Amitabh Bachcan. Though she acted mostly in Telugu films, also gave awarded Kannada film ‘Dweepa’ which was host of national awards including ‘Swarna Kamal’ ( Golden Lotus ) given for the Best film of the year and the Best Actress award for Soundarya. It also won Karnataka state awards for Best film, Best Actress and Best Cinematography. The most successful her very last Kannada film was ‘Aaptamitra’.

Hello Brother, Amman and Anthapuram are some of the popular Telugu films in which she showed her wonderful acting talent. In 2003 Soundarya won the ‘Nandi’ award the best one in Tollywood industry. Nagaarjune, Srikanth, Chiranjeevi and Venkatesh are some of the Tollywood top heros played opposite her. She was very careful in selecting the stories of movies as she never liked body exposure. In Tamil films she played opposite Super Star Rajinikanth, Kamalkhasan, Vijayakanth, Parthiban and Karthic. Ponnumani, Padayappa, Arunachalam, Thavasi, Chockkathangam and Ivan are some of the successful Tamil films. Soundarya also acted in some Malayalam movies opposite Kerala super star Mammooty.

Soundarya belonged to Kannadian Iyengar community and she was pure vegetarian by food habit. Soundarya had attractive color complexion, very beautiful looking and good acting talent. But all of them gone in a few minutes when she met a flight accident on April 17 th, 2004. She never liked to come to the film industry but her ill fate brought her and killed badly.

During the Parlimentary Election of India which held on 2004 Soundarya had joined in BJP ( Bharatiya Janatha Party ) and started electoral compaign at Bangalore just on before day the day she killed. On 17 th April 2004 she proposed to compaign for the Bharatiya Janatha Party at Karimnagar of Andhrapradesh as already scheduled by BJP organisers.

But she never knew that that was her last day and journey in her life. Unfortunately everything including her beauty, complexion and dreams was destroyed after the private four seat cessna 180 air craft crashed in which Soundarya and three others including pilot travelled to Karimnagar in Andhrapradesh. The aircraft took off at about 11:05 AM from Jakkur airfield on the outskirts of Bangalore and turned westerly before crashing on the campus of Gandhi Krishi Vigyan Kendra of University of Agricultural sciences. It had been reached only 100 feet height before it crashed.

Soundarya, her brother Mr Amarnath, Mr Ramesh Kadam ( Secretary of Hindu Jagrana Vedika ) and pilot Joy Philips were burnt beyond recognition. Experts are diagnosing that accident might have happened when the pilot immediately diverted the plane to avoid dashing with a bird as the aerial atmosphere of the Jakkur is often found with many number of birds. To overcome the shaking of the aircraft Soundarya might have incidently held the operational knobs infront of her who had been wrongly seated on the co-pilot seat on that day. But God only knows what really happened on that day.

We every one will die one day but dying such young age ( 32 years ) leaving husband, friends and family members is not digestible for every one and particularly for her fans. Soundarya might be physically not with us but mentally she is always in every heart of her lacs of fans. It’s a saying that God takes good people to Him so early that’s what happened to Soundarya. Soundarya means ‘Beautiful’, she is not only beautiful by looking and also by her other good activities such as generosity and discipline. So God likes her presence with Him.

It is so pity that she did not even pass one year after the marriage which held on 27 th April, 2003 and another pity thing is that she had been conceived when she was killed. What to say ? No words to express feelings about this great tragedy ! It’s all God’s decision and all we can say is rest in peace ‘Soundarya’.


Filed under Random

movie buff part of me

i watch movies very selectively, (not rarely for sure, after all its the cheapest means of entertainment according to my III grade social text book — the authors didnt go for PVR or Prasad’s for sure 😉 ) and if i watch a movie, then the movie is a previleged one.

I watch movies that emphasise on India Patriotism, Indian Culture and Telugu culture.

I hate action movies and filthy ones without head & tail — the present trend telugu movies.

I need to write more and more. so this entry of mine will have many editings in future.

Leave a comment

Filed under about myself