Epic Systems Interview Questions
- 0of 0 votes
AnswersEdge Detection:
- nafisah.islam October 26, 2014 in United States
Two-dimensional array representation of an image can also be represented by a one-dimensional array of W*H size, where W represent row and H represent column size and each cell represent pixel value of that image. you are also given a threshold X. For edge detection, you have to compute difference of a pixel value with each of it's adjacent pixel and find maximum of all differences. And finally compare if that maximum difference is greater than threshold X. if so, then that pixel is a edge pixel and have to display it.| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer / Developer Problem Solving - 0of 0 votes
AnswersWe are given a specific time(like 02:23), we need to get the angle between hour and minute(less than 180)
- 9610 October 21, 2014 in United States| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer / Developer Application / UI Design - 2of 4 votes
AnswersGiven number of digits of a phone number and number of disallowed digits as input, find all permutations of numbers which do not have two adjacent numbers the same, i.e. 1232 is allowed but not 1223. Disallowed digits can be upto 3, and can be included along with the phone number. Also the phone number should start with 4 if it contains the number 4.
- hpfan1 October 18, 2014 in United States| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer / Developer - 0of 2 votes
AnswersThe decimal and octal values of some numbers are both palindromes sometimes. Find such numbers within a given range.
- hpfan1 October 18, 2014 in United States| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer / Developer Algorithm - 0of 0 votes
AnswersIf one and a half teenagers, eat one and a half pizzas in one and a half days, how many pizzas can 9 teenagers eat in 3 days
- hpfan1 October 18, 2014 in United States| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer / Developer Brain Teasers - 0of 0 votes
AnswersGoldbach's conjecture : Every even integer greater than 2 can be expressed as the sum of two primes.
- vamsi1899 October 16, 2014 in India
Write a function which takes a number as input, verify if is an even number greater than 2 and also print atleast one pair of prime numbers.| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer / Developer Algorithm - 2of 2 votes
AnswersThe stepping number:
- Anon October 13, 2014 in United States
A number is called as a stepping number if the adjacent digits are having a difference of 1. For eg. 8,343,545 are stepping numbers. While 890, 098 are not. The difference between a ‘9’ and ‘0’ should not be considered as 1.
Given start number(s) and an end number(e) your function should list out all the stepping numbers in the range including both the numbers s & e.| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer / Developer Algorithm Data Structures Dynamic Programming Java Online Test - 1of 1 vote
AnswersGiven a NXN matrix, starting from the upper left corner of the matrix start printing values in a counter-clockwise fashion.
- Anon October 13, 2014 in United States
Eg: Consider N = 4
Matrix= {a, b, c, d,
e, f, g, h,
i, j, k, l,
m, n, o, p}
Your function should output: dcbaeimnoplhgfjk
Another example would be
C I P E
R N K U
U O W O
L E S Y
The function should print: EPICRULESYOUKNOW| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer / Developer Algorithm - 1of 1 vote
AnswersWe have 'n' patients and 'm' problems. The problems are of boolean type. Eg diabetes problem would be 'T' if a patient has it or 'F' otherwise. Suggest the data structure you would store this scenario on?
- Anon October 01, 2014 in United States
Q: We have a set of problems {diabetes, liver disease, kidney disease} find all the patients who have at least the 3 problems from the set.
The number of patients can be huge (n).
The number of problems not comparatively huge (m).
Which would be the best data structure to store these kind of records, so that we have a better search time.| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer / Developer Data Structures - 1of 1 vote
AnswersGiven a array
- phoenix September 19, 2014 in United States
{{ 4,7,3,6,7}}
construct a triangle like
{{81}}
{{40,41}}
{{21,19,22}}
{{11,10,9,13}}
{{ 4,7,3,6,7}}| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer / Developer - 2of 2 votes
AnswersFind the largest sum contiguous sub array. The length of the returned sub array must be at least of length 2.
- phoenix September 19, 2014 in United States| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer / Developer Algorithm - 4of 10 votes
AnswersA man goes to a hardware shop and asks for price of an item. The shop keeper replies that the item is "one for $1".
- careercupuser May 19, 2014 in United States
The man gives the shop keeper "$3 for 600". What did the man buy for his newly painted house?| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer / Developer Brain Teasers - 2of 2 votes
AnswersThe buildings of an office are numbered sequentially. Person A is in building 1 and person B is in building 106. If A crosses 5 offices in a minute and B crosses 10 offices in a minute, at which office number will they both meet?
- pkala April 25, 2014 in United States| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer / Developer - 0of 0 votes
AnswersFind the next number in the series.
- pkala April 25, 2014 in United States
-3, 6, -18, 72, - 360| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer / Developer - 0of 0 votes
AnswersFind the missing number in the series.
- pkala April 25, 2014 in United States
3, 8 , 18 , _ , 78| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer / Developer - 0of 0 votes
AnswersA string 'aBlY' is said to be well ordered because the letters of the string occur one after the other in the alphabet. Write a function where the number of letters in the string are passes as parameter and all such well ordered strings are found.
- pkala April 25, 2014 in United States| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer / Developer - 1of 1 vote
AnswersLet the user enter a decimal number. The range allowed is 0.0001 to 0.9999. Only four decimal places are allowed. The output should be an irreducible fraction.
- pkala April 25, 2014 in United States
Eg: If the user enters 0.35, the irreducible fraction will be 7/20.| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer / Developer - 0of 0 votes
AnswersThere are two roommates. Each one prepares a list for grocery store. Make a combined list without any duplicates.
- pkala April 25, 2014 in United States| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer / Developer - 0of 0 votes
AnswersWrite a program for a word search. If there is an NxN grid with one letter in each cell. Let the user enter a word and the letters of the word are said to be found in the grid either the letters match vertically, horizontally or diagonally in the grid. If the word is found, print the coordinates of the letters as output.
- pkala April 25, 2014 in United States| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer / Developer - -6of 6 votes
Answers3, 5, 7, 9, 11, 13. Which is least like others?
- shiyin88 April 18, 2014 in United States| Report Duplicate | Flag | PURGE
Epic Systems Applications Developer - 0of 0 votes
AnswersDevelop a program to demonstrate your implementation of a CSV parsing framework which can be used to generically parse given CSV file into Java beans and prints out information about parsed objects using toString(). The program should follow OOAD open-closed principle to avoid/minimize modification of code when new types are added in future.
- poorna.chandra.akp March 03, 2014 in United States
You should accept input from STDIN and print the output to STDOUT.
Assume following input format and study sample inputs given below:
Data-type
Header-Row
Data-Row-1
Data-Row-2
....
Data-Row-N
The first line indicates the entity type, 2nd line is comma separate list of column names, 3rd line onwards is the comma separated data values.
Test Case 1 Input
Type:Employee
name,age,salary
Ashok,36,20000
Kishor,30,15000
Bharath,25,30000
Expected Output
Name : Ashok;Age : 36
Name : Kishor;Age : 30
Name : Bharath;Age : 25
Test Case 2 Input
Type:Department
code,name
acc,accounts
prl,payroll
Expected Output
Code : acc;Name : accounts
Code : prl;Name : payroll
Your solution should parse the input into Java Beans (POJOs). For example, in test case 1, you will be make use of following Java bean (if you chose Java as programming language, and equivalent if you were using other language).
class Employee {
private String name;
private int age;
private int salary;
public Employee() {
}
public void setName(String name) {
this.name = name;
}
public String getName() {
return this.name;
}
public void setAge(int age) {
this.age = age;
}
public int getAge() {
return this.age;
}
public void setSalary(int salary) {
this.salary = salary;
}
public int getSalary() {
return this.salary;
}
public String toString() {
return "Name : " + this.name + ";" + "Age : " + this.age;
}
}
You can create a similar bean for Department as required for test case 2.| Report Duplicate | Flag | PURGE
Epic Systems SDE-2 - 1of 3 votes
AnswersN*N matrix is given with input red or black. You can move horizontally, vertically or diagonally. If 3 consecutive same color found, that color will get 1 point. So if 4 red are vertically then point is 2. Find the winner.
- amnesiac February 25, 2014 in United States| Report Duplicate | Flag | PURGE
Epic Systems Algorithm - 0of 0 votes
AnswersFind the presence of a given word in a given grid, word can be matched in any direction up-down, down-up, left-right, right-left, both diagonals up and down etc.
- amnesiac February 24, 2014 in United States| Report Duplicate | Flag | PURGE
Epic Systems Dynamic Programming - 3of 5 votes
AnswersPrint all palindromes of size greater than equal to 3 of a given string. (DP)
- amnesiac February 15, 2014 in United States| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer / Developer Algorithm - 1of 1 vote
AnswersGiven n. Generate all numbers with number of digits equal to n, such that the digit to the right is greater than the left digit (ai+1 > ai). E.g. if n=3 (123,124,125,……129,234,…..789)
- codr December 26, 2013 in United States| Report Duplicate | Flag | PURGE
Epic Systems Algorithm - -6of 6 votes
AnswersThis code is written in vb.net language for XO game between two players , TIC TOE
- Eliana December 23, 2013 in United States for personnel interview
I WANT A LITTLE EXPLANATION FOR EACH MAIN LINE IN THE CODE ..
Here is the cod>>
>
>
Public Class Form1
Dim player1, player2 As String
Dim CurrPlayer As Char
Dim winner As Char
Dim win As Boolean = False
Dim Endgame As Boolean = False
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
CurrPlayer = "O"
player1 = InputBox("First Player Name:")
player2 = InputBox("Second Player Name:")
lblPlayer1.Text = lblPlayer1.Text + player1
lblPlayer2.Text = lblPlayer2.Text + player2
End Sub
Public Function turn() As Char
If CurrPlayer = "X" Then
CurrPlayer = "O"
ElseIf CurrPlayer = "O" Then
CurrPlayer = "X"
End If
Return CurrPlayer
End Function
Public Function CheckWin() As Boolean
If btn1.Text <> "" And btn1.Text = btn2.Text And btn2.Text = btn3.Text Then
winner = CurrPlayer
win = True
ElseIf btn1.Text <> "" And btn1.Text = btn5.Text And btn5.Text = btn9.Text Then
winner = CurrPlayer
win = True
ElseIf btn1.Text <> "" And btn1.Text = btn4.Text And btn4.Text = btn7.Text Then
winner = CurrPlayer
win = True
ElseIf btn2.Text <> "" And btn2.Text = btn5.Text And btn5.Text = btn8.Text Then
winner = CurrPlayer
win = True
ElseIf btn3.Text <> "" And btn3.Text = btn5.Text And btn5.Text = btn7.Text Then
winner = CurrPlayer
win = True
ElseIf btn3.Text <> "" And btn3.Text = btn6.Text And btn6.Text = btn9.Text Then
winner = CurrPlayer
win = True
ElseIf btn4.Text <> "" And btn4.Text = btn5.Text And btn5.Text = btn6.Text Then
winner = CurrPlayer
win = True
ElseIf btn7.Text <> "" And btn7.Text = btn8.Text And btn8.Text = btn9.Text Then
winner = CurrPlayer
win = True
End If
Return win
End Function
Public Sub newGame()
For Each c As Control In Me.Controls
If c.GetType Is GetType(Button) Then
c.Text = ""
End If
Next
CurrPlayer = "O"
win = False
End Sub
Public Sub displayWinner()
If CheckWin() Then
If CurrPlayer = "X" Then
MessageBox.Show("Congratulations, the winner is " + player1, "Congratulations", MessageBoxButtons.OK, MessageBoxIcon.Information)
newGame()
Else
MessageBox.Show("Congratulations, the winner is " + player2, "Congratulations", MessageBoxButtons.OK, MessageBoxIcon.Information)
newGame()
End If
End If
End Sub
Public Sub CheckEven()
Dim empty As Boolean = False
For Each c As Control In Me.Controls
If c.GetType Is GetType(Button) Then
If c.Text = "" Then
empty = True
End If
End If
Next
If empty <> True Then
MessageBox.Show("Players are Even", "Neutral Game", MessageBoxButtons.OK, MessageBoxIcon.Information)
newGame()
End If
End Sub
Private Sub btn1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn1.Click
If btn1.Text = "" Then
btn1.Text = turn()
displayWinner()
CheckEven()
End If
End Sub
Private Sub btn2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn2.Click
If btn2.Text = "" Then
btn2.Text = turn()
displayWinner()
CheckEven()
End If
End Sub
Private Sub btn3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn3.Click
If btn3.Text = "" Then
btn3.Text = turn()
displayWinner()
CheckEven()
End If
End Sub
Private Sub btn4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn4.Click
If btn4.Text = "" Then
btn4.Text = turn()
displayWinner()
CheckEven()
End If
End Sub
Private Sub btn5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn5.Click
If btn5.Text = "" Then
btn5.Text = turn()
displayWinner()
CheckEven()
End If
End Sub
Private Sub btn6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn6.Click
If btn6.Text = "" Then
btn6.Text = turn()
displayWinner()
End If
End Sub
Private Sub btn7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn7.Click
If btn7.Text = "" Then
btn7.Text = turn()
displayWinner()
CheckEven()
End If
End Sub
Private Sub btn8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn8.Click
If btn8.Text = "" Then
btn8.Text = turn()
displayWinner()
CheckEven()
End If
End Sub
Private Sub btn9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn9.Click
If btn9.Text = "" Then
btn9.Text = turn()
displayWinner()
CheckEven()
End If
End Sub
End Class| Report Duplicate | Flag | PURGE
Epic Systems Software Architect - 2of 2 votes
AnswersYou can swap only two consecutive elements. You have to show all steps to convert a string into another string (both strings will be anagrams of each other). E.g. GUM to MUG
- codr December 21, 2013 in United States
GUM
GMU
MGU
MUG| Report Duplicate | Flag | PURGE
Epic Systems SDE1 Algorithm - 1of 3 votes
AnswersIn 1-9 keypad one key is not working. If some one enters a password then not working key will not be entered. You have given expected password and entered password. Check that entered password is valid or not
- GOOGLE_SDE November 14, 2013 in United States
Ex: entered 164, expected 18684 (you need to take care as when u enter 18684 and 164 only both will be taken as 164 input)| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer / Developer - 1of 1 vote
AnswersIf an N X N matrix is given, print it in spiral order.
- GKR April 07, 2013 in United States
Example: Below is 5 X 5 matrix
i l o v e
d i n t e
n i e e p
a v w r i
m a x e c
Print in spiral order. Output is iloveepicexamandinterview| Report Duplicate | Flag | PURGE
Epic Systems Algorithm C C++ C# Coding Java - -5of 5 votes
Answersn*n matrix, find the longest ways for each players.
- jkmejdch March 19, 2013 in United States
players: red and blue.
players can jump to the next position based on the opposite player, after jump, remove the opposite player.| Report Duplicate | Flag | PURGE
Epic Systems Software Engineer Intern Algorithm