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

``````public static void main(String[] args) {
// TODO code application logic here
int i,j;
for(i=1,j=100/50;i<21;i++,j=j+2)
{
System.out.print(((i-1)-(i-1)/10*(j-22)));
}
//

}``````

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

O(n) - Solution

def Reverse(lst):
return [ele for ele in reversed(lst)]

plist = [0]
rlist = []
for i in range(1,11):
plist.append(i)
if (i != 10):
rlist.append(i)

plist.extend(Reverse(rlist))
print(plist)

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

O(n) - Solution

def Reverse(lst):
return [ele for ele in reversed(lst)]

plist = [0]
rlist = []
for i in range(1,11):
plist.append(i)
if (i != 10):
rlist.append(i)

plist.extend(Reverse(rlist))
print(plist)

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.