Microsoft Interview Question for Software Engineer / Developers


Country: India
Interview Type: In-Person




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

Dictionary suffice the needs. Keys will be different class namespaces. There values will be what all public methods and variables that class/inteface exposes. This will be applied even for the curent class.

- Ash February 26, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

And we can make a special class which hold all the function/variable names in the trie structure.

- King@Work February 26, 2012 | Flag
Comment hidden because of low score. Click to expand.
1
of 1 vote

I also think trie should be good here .....we can do some tweaking ...when the name of a class ends in a trie we can keep a pointer to another trie which contains the methods of this class ... ..so in effect one global trie for all classes and each leaf in this trie point one unique trie which can all the methods in that class....same logic can be applied if we need a hierarchy of classes ..

- seg_fault February 27, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 2 vote

I feel trie should be a suitable data structure.

- Apurva February 26, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

You should mention to the customer that in the background the IDE continually tries to build/compile. This code runs in a separate thread. While auto complete may be well described using a TRIE, the trie is built over and over again as part of compilation in the background thread. The suggestion for properties and methods is implemented using REFLECTIONS (in C# or java).

- whizz.comp March 03, 2012 | 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