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;

- M.Manoj kumar August 30, 2016 | Flag Reply
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;
}

- Anonymous August 30, 2016 | Flag Reply
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;
}

- Anonymous August 30, 2016 | Flag Reply
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;
}

- Avneesh August 30, 2016 | Flag Reply
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)  ; 
     }

- NoOne September 11, 2016 | Flag Reply
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"
}

- here is the simple logic September 21, 2016 | Flag Reply
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);
}
}

- naveen November 22, 2016 | 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