Microsoft Interview Question for Software Engineer / Developers






Comment hidden because of low score. Click to expand.
0
of 0 vote

Khoa,

You have posted way too many questions. Do you just put questions to generate discussion or were they really microsoft or amazon questions ?

I personally think that lot of your questions are just to generate discussion and if you put them as Microsoft or Amazon questions, the likelihood of other people taking part is high. Its a good tactics you are employing but you must be truthful at the same time.

- Daniel Johnson March 02, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I'm trying to make this website contains the most extensive interview questions on the web. This website was very helpful to me when I was interviewing. I just want to give something back. I'm also a moderator for this website too. If you search on blogsearch.google.com, you'll find many more interview questions from Amazon, Microsoft, and many other tech companies.

My intention for posting these interviewing questions isn't about generating discussion. I just want to expose to people who are interviewing with these tech companies to a different array of questions.

I work for Amazon so I might use any of these questions any day when I interview people. So you might potentially run into them. But yes, most of them are from MS, Amazon, and Google that I found on the web. Since we're not allowed to post Google interview questions on here, I'll put it under different companies. Why do you care so much about whether I put the correct company down?

- vodangkhoa March 02, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Khoa you are doing a great job!
Well no comments so far related to the shell sort code.
So i will go ahead with that.

void shellSort(int A[], int n)
{
   int gap, i, j, temp;
   
   for(gap=n/2; gap>0;gap /= 2)
   {
      for(i=gap; i<n;i++)
      {
          for(j=i-gap;j>=0 && A[j]>A[j+gap];j -= gap)
          {
                temp = A[j]; A[j]=A[j+gap]; A[j+gap] = temp;
          }
      }
   }
}

The outermost controls the gap between compared elements, shrinking it from n/2 by a factor of 2 each pass until it becomes zero.
The middle loop steps along the elements.
Innermost loop compares each pair of elements that is separated by gap, and reverses any that is out of order.

- algooz April 27, 2008 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More