## Skill Subsist Impulse Ltd Interview Question for Data Scientists

Country: India
Interview Type: In-Person

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

Int a,b,c;
c=a;
a=b;
b=c;

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

#include<bits/stdc++.h>
using namespace std;
int main(){
int a = 3,b = 2;
if(((b-a)>>31)&1){ /// because b-a result in msb 1 (shifting 31 anding 1 give 1)
cout<<"b is small \n";
}
else cout<<"a is small \n";

return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
int a = 3,b = 2;
if(((b-a)>>31)&1){ /// because b-a result in msb 1 (shifting 31 anding 1 give 1)
cout<<"b is small \n";
}
else cout<<"a is small \n";

return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
int a = 3,b = 2;
if(((b-a)>>31)&1){ /// because b-a result in msb 1 (shifting 31 anding 1 give 1)
cout<<"b is small \n";
}
else cout<<"a is small \n";

return 0;
}

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

``````/*   true if a > b   */
bool larger( unsigned  a, unsigned b ) {
return (bool)(a - b)  ;
}``````

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

``````while(a && b)
{
a=a-1
b=b-1
}

if (a)
{
print "a is greater";
}else
{
print "b is greater"
}``````

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

import java.lang.Math;

public class BiggestImpl {
public static void main(String[] args) {
int a = 3;
int b = 4;
int k = Math.abs(a - b);
int j = a +b;
double k1=(double)(k);
double j1= (double) (j);
double c=Math.ceil(k1/2) + Math.floor(j1/2);
int c1= (int) (c);
System.out.println("Biggest among two values = " + c1);
}
}

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.

### 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.