Infosys Interview Question for Software Engineer / Developers






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

What's secondary digonal of a matrix?

- vodangkhoa March 30, 2007 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

suppose given matrix is 3*3

then u have to swap elements a[0][1] & a[1][0]
a[1][2] & a[2][1]

write alogo for any n*n matrix

- Ravi Kant Pandey March 31, 2007 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

We need to determine candidates for not including in this swap:

i: row
j: col


Cond: (i=j) || (i>j) || ((i+j) == n)
Swap a[i,j] with a[j,i] for all elements that do not meet the above condition!

- DrEvil August 01, 2007 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Cond:((i+j)==n||(i+j)>n)
secondary digonal

- ddm October 01, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Oh, typo.

Cond:((i+j)==n||(i+j)>n)
Swap a[i,j] with a[j,i] for all elements that do not meet the above condition!

- ddm October 01, 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