Amazon Interview Question for Senior Software Development Engineers Software Engineer / Developers


Country: India




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

Pick the largest basis and consider the spaces generated by possible subsets of that basis.

- Anonymous April 02, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

can you please elaborate and explain with an example

- jannatint April 02, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

No. If you understand the terms, this should be quite clear. Are you looking to get your homework done?

- Anonymous April 03, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

I agree this will work, basics of Group Theory. Good to see maths is finding it's way in different faces

- Anonymous April 03, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

first of all what do you mean by largest basis??
this method is not working i guess.
say we have a space of codeword of size 2^n where n=3. {0000000,0010111,0101110,0111001,1011100,1001011,1110010,1100101 }

it has basis {1011100,0101110,0010111}.

now possible subset of size 2 are: {1011100,0101110} , {0101110,0010111} and {1011100,0010111}.
that means we have only 3 subspace of size 2^2 in this case. which is actually not true. there are even more.
correct me if am wrong.

- jannatint April 03, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Look for elements that add up to 0. Build a table of all combinations that add up to 0. I think this would take at least O(n^2) time though, where n is size of the code space. From this table you could build your subsets by adding any remaining element to the 0 combination.

- Anonymous April 04, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

elements when added to itself will give u zero. We wont get pairs that add up to give zero.
01010101
+01010101
````````````````
00000000

- jannatint April 04, 2013 | Flag


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