Barclays Capital Interview Question for Software Engineer / Developers






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

should be 1 2 3 4 5.
i[a-i] <=> *(a-i+i) = *a = a[0] = 1
1%N = 1%5 = 1
1[a+i-1] <=> *(a+i-1+1) = *(a+i) = a[i]

haven't tried it though.

- ftfish July 25, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

You right.

- DRY July 25, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

How can u say that [a+i-1] = 1[a+i-1]????????

- Atulkumar June 28, 2012 | Flag
Comment hidden because of low score. Click to expand.
1
of 1 vote

its not like
[a+i-1] ==> 1[a+i-1]
but
1 comes from
(i[a-i] % N)[a+i-1]
(*(a-i+i) % N)[a+i-1]
( *a% N)[a+i-1]
( a[0]% N)[a+i-1]
( 1% N)[a+i-1]
(1%5)[a+i-1]
1[a+i-1]
*(a+i-1+1)
*(a+i)
a[i]

- Paras Patel November 07, 2012 | Flag
Comment hidden because of low score. Click to expand.
1
of 1 vote

Why in the world would someone use such cryptic syntax in production code?

- vick May 12, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

You sure you write it right?

- Anonymous July 25, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Yes, sorry. Already corrected.

- fiddler.g July 25, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

std::cout << (i[a-i]%N)[a+i-1] << " ";

CAN ANY ONE PLS EXPLAIN THE ABOVE STATEMENT...I'M STILL NOT ABLE TO GET IT??

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

i don't quite understand the statement either, can someone who knows kindly explain it?

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

either arr[1] or 1[arr] -- both mean same

so, for example, the following code prints - 1 to 5

for(int j=0; j < 5; j++)
{
cout << endl << j[a] << endl;
}

hope this helps.

- siva January 28, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

It seems like recruiters are begging for someone to defecate in their offices.

- Anonymous February 15, 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