Epic Systems Interview Question for Software Engineer / Developers






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

It's like word game, the first day is 2 sec late, the 2nd day is 4 sec late, for two days, it's 6..

- ilikedeal February 05, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

if it says 2 more sec per day it will be 6, otherwise, it should be 4

- Anonymous December 09, 2019 | Flag
Comment hidden because of low score. Click to expand.
1
of 1 vote

How can it be 2 + 4? The 4 secs of the 2nd day includes the 2 secs of 1st day; so you are accounting for 1st days loss twice. Think of it this way - the clock will complete its 2 days when it is actually 2 day & 4 secs. This kind of question is merely to confuse.

- Maximus February 16, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

What is the answer ? Is it 4 or 6?

- anonymous March 02, 2010 | Flag
Comment hidden because of low score. Click to expand.
1
of 3 vote

Explanation:-

To understand this we have to compare 2 clocks.

At the end of day1, suppose Normal clock shows 12AM. Screwed up clock will be 11 PM 59Min 58Sec. Lost 2 days.

One Interesting fact is that Screwed up clock will reach 12AM only after 2 secs. :)

At the end of Day2, as usual screwed up clock will lose 2 more seconds.

Means, 2+2(make up for day1's lost seconds) +2 = 6secs!

- nagabhushana.s July 01, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

the clock loses 2 sec lesser to the previous day
so first day 2 sec and 2nd day 2 sec lesser to the first day that is 4 sec total loss is 6 sec

- Anonymous July 02, 2010 | Flag
Comment hidden because of low score. Click to expand.
1
of 1 vote

I think its 4 seconds.
1 day = 86400 sec.
So 86400 sec --> 2 seconds loss
means for each second, 1/43200 seconds is lost

Therefore for 2 days, which is 2*86400 seconds, (2*86400*1/43200)seconds is lost which is 4seconds

- Harish July 24, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

Continuing from Nagabhushana's logic :-

End of Day 1 :- Proper Clock :- 12:00:00
Screwed Clock :- 11:59:58

Proper Clock :- 12:00:02
Screwed Clock :- 12:00:00

End of Day 2 Proper Clock :- 12:00:02 (ur logic Screwed here as u took 12:00:04 )
Screwed Clock :- 11:59:58

Proper Clock :- 12:00:04
Screwed Clock :- 12:00:00

- Mandar November 03, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Mostly right, so after 48 hours...

Proper clock - 12:00:00
Screwed Clock - 11:58:56

The screwed up clock falls behind 2 seconds for each 24 hour cycle.

- Eric January 04, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Ooops, meant to type:

Proper clock - 12:00:00
Screwed Clock - 11:59:56

- Eric January 04, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

42

- answer February 03, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

2+4=6

- newlifeseattle February 03, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

where did 4 come from?

- ilikedeal February 05, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

end of 1st day loses 2 sec from day 0
end of 2nd day loses 2 sec from day 1 == 4 sec from day 0
total loss 6 sec

- tetura February 09, 2010 | Flag
Comment hidden because of low score. Click to expand.
1
of 1 vote

But the doubt is : in the total loss you count 2 secs twice.
Hence to total loss relative to day 0 is 4 secs from what i can see

- Anonymous May 18, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

4?

- sdm February 04, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

6 seconds.

- cirus February 04, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I'm kinda confused. I thought 1st day 2sec late (to day 0) and 2nd 2sec late (to day 1). So it would be 4. My opinion, this is tricky since the question is kinda vague.

- Anonymous February 08, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

4

- ana March 04, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

4

- Sudhi May 15, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

6

- Anonymous June 09, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

in 2 days, the clock will lose another 2 seconds.

- lief June 21, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

4 seconds

2 seconds loss per day and it asks how much time it would lose in 2 days .In 2 days here means

Start of day 0 - Start of day 1
Start of day 1 - Start of day 2
So by all means it is 4 seconds

- Ran August 06, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

None of you are right!!
The clock loses 2secs a day. At end of 24hrs, 2secs on a real non-faulty clock(RNFC), the faulty slow clock (FSC) shows 24hrs. This means that the loss is per second and can be measured as a whole number only at the end of a 24hr, 2sec period on a RNFC.

When this RNFC reaches 24hrs, 2sec it must be advanced only 23hrs, 59min and 58sec after that to get to 2days. This means that in 24hrs 2sec FSC lost 2 sec. In 23hrs, 59min, 58sec FSC loses slightly less than 2secs/ Therefore in two days measured on RNFC, it loses slightly less than 4secs, in particular ~3.99 seconds.

- AN November 21, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

you ran the experiment... lol

- Venki January 06, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

You idiot AN, don't you know what a day means, go learn how to read the time. Mandar is right..terms like RNFC, FSC only obfuscate matters.
4 seconds It cant be six. I ran this experiment day before!!

- Albert E November 21, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

LOL!!

- aj June 12, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

I feel 2 sec lost...!

End of first day real time 12:00:00 AM
End of first day Screwed Time : 11:59:58 PM

ok...... now read the Q (how much time will it loose in 2 days ie.real time).

Start of second day real time : 12:00:01 AM (real world 2nd day started)
Start of second day Screwed Time : 23:59:59 PM ( its already 2nd day and our screwed clok is behind 2 second, per day loose 2 sec. This continues till you make your clock 2 sec front not 4 or 6 sec )

End of second day real time 12:00:00 AM (real time we reach end of second day but screwed clock lost 2 sec.......)
End of second day Screwed Time : 11:59:58 PM

Third day...... fourth day...... lose of 2 sec in screwed clock per day in real time.

- Lits December 01, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

< 4

the assumption is that on the second day it takes 24hours + 2 seconds for he clock to lose another 2 seconds. so for the full 48 hours, it loses < 4 seconds

- jay December 27, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

No. When the actual day goes through 24 hours, the clock will be at 23 hr, 59 min and 58 secs. It is independent of the day. When the next day goes through 24 hours, the clock will still have gone through another 23 hr, 59 min and 58 seconds. So 4 seconds lost.

- Frank January 30, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

LMAO

- Anonymous February 17, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

the answer is 6 sec because when two days would be completed then the clock would have already exceeded the second day by 4 sec and 3rd day would have started .......so loss of another 2sec
4+2=6

- abhishek February 20, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Its 4 secs asses ... end of story :| ..

2 sec on first day and another 2 on second day zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz

- Anonymous February 21, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

i am roflmao on this discussion...32 comments :D

- lmao March 28, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Amazing to see so many comments on this problem ..

- nagpal April 10, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

4 secs flat.....
This is not a markovian clock.. This is a simple clock.. with no memory that i lost 2 secs yesterday and therefore i must lose 2 secs today for yesterday and 2 secs today for today...
guys unbelievable if you think clock can think like this!!!!

- Anonymous August 17, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

question should be, if a clock loses 2 seconds in one day how many seconds will it have lost after 2 days. the answer is 4 because you finding the overall time that has been lost, after a natural 24 hours the clock will have lost 2 seconds and will show 23.59.58 then after another natural 24 hours(48 hours overall) since the clock only goes to 23.59.58 in 24 hours, it will show 23.59.56 as it has lost another 2 seconds in the real 24 hours period. so when in reality where 172800 seconds have past in 48 hours the clock would show 172796 seconds meaning a 4 second loss

- xazx June 21, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Depends on 1) how exactly is the wording of the question and 2) on the available answers (assuming that it is a multiple choice).

If the question is the same as presented here, so we can try to realize what are the assumptions. If the answers (~3.99), (4), and (6) appear, (~3.99) will be the answer because this is how a real-word clock delays (fractions of seconds) and not in "jumps".

If the answers (4) and (6) appear, (6) must be the answer because for an IQ exam, the easy answer (4) shows that something is wrong. In this case, a "game of words" must be considered (delay "per day") and we need to assume that it is a fictitious scenario where the delay d_i of each day i (i = any integer from 1 to infinite+) is given as d_i = (i)*2s. In this case, d_1 = 2s, d_2 = 4s, d_3 = 6s, d_4 = 8s. Therefore, at the end of the second day, the total delay is d_1 + d_2 = 2 + 4 = 6s.

Finally, if the answer (4) appears without the other 2 answers, this is the expected common-sense answer (99.99999..9%) would take this answer without taking more than 5s to think. With nerds... it is another story :)

- just_trying August 02, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

The answer is 4. Not 6.
Think in this way. If you have a clock, which slower or faster than the normal clock for 2 secs. So what are you gonna do every day? You gotta adjust it every day. You need to add add 2 secs to it if it lost 2 secs everyday. So, say, after 30 days, how many secs you add to it? It is 2 * 30 secs = 60 secs.

- Clock Expert March 10, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 1 vote

original day - 24(hours) x 60min x 60sec
after 1st day - 24 x 60 x 58
after 2nd day - 24 x 60 x 56

total secs it looses in 2 days = (24 x 60 x 60) - (24 x 60 x 56)

- MB July 15, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 1 vote

bhahhahahaha...DAMN, You Guys are so f****** unbelievable! lmfao!

- Anonymous May 15, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
-2
of 2 vote

all of you are mother f#####$!

- Anonymous July 03, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Hahaha!! lol...

- Anonymous April 20, 2011 | Flag


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