- Joined
- 5/2/06
- Messages
- 11,954
- Points
- 273
Background info: D.E Shaw has a reputation of hiring only top mathematicians, researchers, etc.
"They have these really elitist-sounding recruiting philosophies, like, 'If you're brilliant we'll hire you,'" says one insider about D.E. Shaw's hiring process. Indeed, the firm founded by a Computer Science professor boasts that it includes a disproportionate amount of computer scientists and systems architects, and that it extends an offer to only one out of about 150 of the candidates it considers. It's even harder to get an offer at the firm these days than in boom times; insiders report that the firm is in a deep hiring freeze.
Source Excite -
Disclaimer: These questions and answers are provided as is. We do not take responsibility for any consequences resulted from using these answers during actual job interview.
The source of these info is taken from DE Shaw :: Programming Questions - I - The Nameless Blog
Part I: Programming
1. Swapping two variables x,y without using a temporary variable.
2. Write a program for reversing the given string.
3. The integers from 1 to n are stored in an array in a random fashion. but one integer is missing. write a program to find the missing integer.
4. Write a c program to find whether a stack is progressing in forward or reverse direction.
5. Write a c program that reverses the linked list.
C/C++:
1.
what does nodeptr stand for?
2.
int *x[](); means
expl: Elments of an array can't be functions.
3. What is the output?
ans: 4
4.
What is the output
5.
ans: no error. But It will over writes on same
file.
6.
8. what is the output of
a) 13 b) 12 c) 44 d) 14
9.
10.
11.
12.
13.
14.
15.
16. what is the o/p of the program
main()
{
int rows=3,colums=4;
int a[rows][colums]={1,2,3,4,5,6,7,8,9,10,11,12};
i=j=k=99;
for(i=0;i
17. what is output
a) infinite loop
b) error
c) 99..99..99..99
d) 3..22..1..
"They have these really elitist-sounding recruiting philosophies, like, 'If you're brilliant we'll hire you,'" says one insider about D.E. Shaw's hiring process. Indeed, the firm founded by a Computer Science professor boasts that it includes a disproportionate amount of computer scientists and systems architects, and that it extends an offer to only one out of about 150 of the candidates it considers. It's even harder to get an offer at the firm these days than in boom times; insiders report that the firm is in a deep hiring freeze.
Source Excite -
Disclaimer: These questions and answers are provided as is. We do not take responsibility for any consequences resulted from using these answers during actual job interview.
The source of these info is taken from DE Shaw :: Programming Questions - I - The Nameless Blog
Part I: Programming
1. Swapping two variables x,y without using a temporary variable.
2. Write a program for reversing the given string.
3. The integers from 1 to n are stored in an array in a random fashion. but one integer is missing. write a program to find the missing integer.
4. Write a c program to find whether a stack is progressing in forward or reverse direction.
5. Write a c program that reverses the linked list.
C/C++:
1.
Code:
typedef struct{
char *;
nodeptr next;
} * nodeptr;
2.
int *x[](); means
expl: Elments of an array can't be functions.
3. What is the output?
Code:
int i;
i=1;
i=i+2*i++;
printf(%d,i);
4.
Code:
#include
char *f()
{char *s=malloc(8);
strcpy(s,"goodbye")}
main()
{
char *f();
printf("%c",*f()='A');
5.
Code:
FILE *fp1,*fp2;
fp1=fopen("one","w")
fp2=fopen("one","w")
fputc('A',fp1)
fputc('B',fp2)
fclose(fp1)
fclose(fp2)}
file.
6.
Code:
#define MAN(x,y) (x)>(y)?(x):(y)
{ int i=10;j=5;k=0;
k= MAX(i++,++j)
printf(%d %d %d %d,i,j,k)}
8. what is the output of
Code:
#include
show(int t,va_list ptr1)
{
int a,x,i;
a=va_arg(ptr1,int)
printf("\n %d",a)
}
display(char)
{int x;
listptr;
va_star(otr,s);
n=va_arg(ptr,int);
show(x,ptr);
}
main()
{
display("hello",4,12,13,14,44);
}
9.
Code:
main()
{
printf("hello");
fork();
}
10.
Code:
main()
{
int i = 10;
printf(" %d %d %d \n", ++i, i++, ++i);
}
11.
Code:
#include
main()
{
int *p, *c, i;
i = 5;
p = (int*) (malloc(sizeof(i)));
printf("\n%d",*p);
*p = 10;
printf("\n%d %d",i,*p);
c = (int*) calloc(2);
printf("\n%d\n",*c);
}
Code:
#define MAX(x,y) (x) >(y)?(x):(y)
main()
{
int i=10,j=5,k=0;
k= MAX(i++,++j);
printf("%d..%d..%d",i,j,k);
}
13.
Code:
#include
main()
{
enum _tag{ left=10, right, front=100, back};
printf("left is %d, right is %d, front is
%d, back is
%d",left,right,front,back);
}
14.
Code:
main()
{
int a=10,b=20;
a>=5?b=100:b=200;
printf("%d\n",b);
}
15.
Code:
#define PRINT(int) printf("int = %d ",int)
main()
{
int x,y,z;
x=03;y=02;z=01;
PRINT(x^x);
z<<=3;PRINT(x); > y>>=3;PRINT(y);
}
16. what is the o/p of the program
main()
{
int rows=3,colums=4;
int a[rows][colums]={1,2,3,4,5,6,7,8,9,10,11,12};
i=j=k=99;
for(i=0;i
17. what is output
Code:
main()
{int i=3;
while(i--)
{
int i=100
i--;
printf("%d..",i);
}
}
b) error
c) 99..99..99..99
d) 3..22..1..