Interview Question for Software Engineer / Developers






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

I have a question .. ead and eda .. 2 combinations or one?

- JoshMachine November 04, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

2 combinations.. think about each one as a string. Boy and Yob are two different words.

- realquant November 05, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

2 permutations - i.e. each arrangement is treated as being unique. Combinations implies the arrangements doesn't matter, only the choice of what was picked overall matters...

- Anonymous November 17, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

I do not have clear idea but I can share vague idea.
For each internal node there are 9 neighbors including itself. So we can have 2^9 -1 substrings (We can think it like we have a set consisting of 9 elements so total number of non empty subsets is (2^9 -1) )
Similarly, For corner node/element we have 2^4 -1
For edge element : 2^6 -1
off course it includes some duplicate substring also. We need to exclude it.

- Anonymous March 06, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Similar to Anonymous but may have different understand about the question. Only ea,eb,ec,ed,ef,eg,eh,ei, no e.
There are 8 neighbors, for each one, only "in" or "out" status. For example, a is "in", all other are out, then substring=ea
So 2^8, but all neighbors cannot be "out", so final answer is 2^8-1=255
For 4 corners, 2^3-1=7
For 4 sides, 2^5-1=31

- hyaochn September 24, 2011 | 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