Epic Systems Interview Question for Software Engineer / Developers

Country: United States
Interview Type: Written Test

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

-3 x -2 = 6
6 x -3 = -18
-18 x -4 = 72
72 x -5 = -360
-360 x -6 = 2160

so next number in the series is 2160.

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

``````-3+3*3=6
6-6*4=-18
-18+18*5=72
72-72*6=-360
-360+360*7=2160``````

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

Initial number is -3.
3 * 2 = 6
6 * 3 = 18
18 * 4 = 72
72 * 5 = 360

So the next number will be 360 * 6 = 2160..
Assign '-' sign to every alternate number in the seies. So the answer is 2160.

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

2160

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

-360 * 6

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

-360 * -6 = 2160

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

This is to determine sequence, a topic from discrete math.

We seek a_n, where
a_1 = -3 = -1 * 3
a_2 = 6 = 1 * 3 * 2
a_3 = -18 = -1 * 6 * 3
a_4 = 72 = 1 * 18 * 4
a_5 = -360 = -1 * 72 * 5

By inspection, the sequence is produced by
with initial condition n =1:
a_1 = -3
and subsequent sequence given by
a_n = (-1)**(n-1) * a_(n-1) * n for n > 2

Implemented in python:
{
import math
def a(n):
init = -3
pre = init
print pre

i = 2
while i < n + 1:
answer = (-1)**(i) * abs(pre) * i
i = i + 1
}

>>> a(6)
-3
6
-18
72
-360
2160

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

Correction:

a_n = (-1)**(n) * |a_(n-1)| * n for n > 2

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

Of all the stupid questions, these type of questions are EPIC.

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.