Palantir Technologies Interview Question
109 Interview Reviews |
Back to all Palantir Technologies Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Embedded Analyst at Palantir Technologies:
Find a min and max in an array of integers.
| Tags: | technical, analytical, code, tech See more , See less 8 |
See more for this Palantir Technologies Embedded Analyst Interview
Helpful Question?
Yes |
No
Inappropriate?
0 of 1 people found this helpful
by CheckThisResume.com:
int tab[SIZE];
int im, sovim, sovim2, max, min;
max=-MAXINT;
min=MAXINT;
for(im=0; im<SIZE ; im++)
{
if(tab[im]>max)
{
max=tab[im];
sovim=im;
}
if(tab[im]<min)
{
min=tab[im];
sovim2=im;
}
}
printf("\n max: %d min:%d", tab[im], tab[im2]);