Epic Systems Interview Question for Software Engineer / Developers


Country: United States
Interview Type: Written Test




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

The effective speed of beer is 1 foot/min , so it will take 58 minutes to climb 58 feet , then assuming his climbing speed to be uniform it will take 0.8 min to climb the next 2.5 feet. So , total time is 58.8 minutes or 59 minutes if you round it.

- praveenkcs28 October 27, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

The hill length is 60.5 feet . So at 57th minute it will reach at 60 feet and falling down to 57 feet. Next 58th minute it will reach to 60.5 feet becoz the hill is 60.5 feet long.It cannot go beyond 60.5 height. So it has reached at 60.5 feet already at 58th minute.Dont consider falling down at the last step.So answer can be 58 minutes.

- rutulshah2007 March 14, 2015 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

58 mins and 50 seconds (5/6th the distance)

- harshjain30 January 30, 2016 | Flag
Comment hidden because of low score. Click to expand.
2
of 2 vote

Effective feet is 1 foot overall. So till 58 feet it needs 58 minutes and then it climbs the 3 feet so it is 59 minutes overall.

- Dheeraj October 26, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Bear effectively climbs 2 feet in a minute. So it takes 30 seconds to complete 60 feet and the remaining 0.5 foot will take about 0.25 seconds or lesser. So it takes 30 minutes and few seconds in total, according to my understanding.

- Pooja October 26, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Every minute bear climbs 3 feet but fell off to two feet. So each minute it climbs one feet, on 59th minute it would reach 61feet. Hence it requires 59minutes to climb-up the hill of 60.5m long.

- kumar October 26, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

You are all wrong.

Consider that the Bear will reach the top of the hill before falling down. Ie: if the hill were 3 feet, the bear would reach the top of the hill in 1 minute (of course, it would then fall 2 feet afterward, but still). A 4 foot hill would take 2 minutes (it climbs 3, falls 2 then climbs 3 more). Making a formula, the bear would effectively take the following time to climb any hill:

public static void double climbTime(double hillHeight){
  if(hillHeight < 3.0){
	return hillHeight/3.0;
  }
  return 1.0 + (hillHeight-3.0)
}

- Zortlord October 27, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Would help if I proofed my own code...

public static double climbTime(double hillHeight){
  if(hillHeight < 3.0){
	return hillHeight/3.0;
  }
  return 1.0 + (hillHeight-3.0)
}

- Zortlord October 28, 2014 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

public static int computeTime(Double height ){

if (height % 3 == 0){
return (height-3)+1;
}
else{
return (height/3+1);
}


}

- jeffreybo.liu October 30, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 1 vote

public static int computeTime(double height){

if(height<=3) return height/3;
else if (height % 3 == 0) return (height-3)+1;
else return (height/3)*3+(height%3)/3.0;

}


This code should be right

- jeffreybo.liu October 30, 2014 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

public static int computeTime(double height){ 
	int steps=3* Math.ceil(height) / 3;
	if(steps%3==0) 	// ex: 59.79   ;  steps=60  ;  so normal 57 + 1 (a jump) 
		return steps-2; 
	return steps-(3-steps%3);		// 60.1	 ;  steps=60  ;  so normal 57 + 1 (a jump) 
}

- Venkat Ram Reddy April 20, 2015 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

It should be 59 minutes.

- stanislashzc November 13, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

The effective distance travelled by the bear in 58 minutes is 58 feet.So,to reach the 60.5 feet mark it needs to travel 2.5 feet more .Assuming that the bear does not fall down by 2 feet for climbing anything less than 3 feet it takes the bear (2.5/3)*60 seconds to traverse the remaining distance.

Total time taken= 58 minutes and 50 seconds.

- Anonymous December 02, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

#include <stdio.h> 
float climbtime(float);
int main()
{
    float h,t;
    printf("Enter height of mountain");
    scanf("%f",&h);
    t=climbtime(h);
    printf("The time taken to climb is %f",t);
}

float climbtime(float height)
{
    int flag;
    float temp;
    for( flag=1;flag<height;flag++)
    {
         if((height-flag)< 3)
         {
             temp=height-flag;
             break;
         }
        else
            continue;
    }

    
    return flag+((float)temp/3);

}

- Satyaki December 02, 2014 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

condition should be

height - flag <= 3

for ex when you entered mountain height 57 answer should be 55

- Anonymous December 16, 2014 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Retro Batch

:: Set Vars
SET peak=0
SET slide=0
SET loop=0

:CLIMB
SET /A peak +=3
IF %peak% leq 61 (
  SET /A loop +=1
  SET /A slide +=1
    IF %peak% geq 61 (
    ECHO %loop% Mintues
	GOTO :END
	) 
  SET peak=%slide%
  GOTO :CLIMB
  )

:END

- OldDude January 18, 2017 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I don't think everybody understand the question; the bear initial speed is 3ft per min but his final speed (when he get to the top) is 2ft per min. So, using simple physics concept: total distance is his average speed times time it takes to get to the top which will be 24.2 minutes.

- Te March 02, 2019 | 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