EPAM Coding Questions

EPAM Coding Questions With Solutions

EPAM Coding Questions will help you to prepare yourself to appear for recruitment drives hiring for the designation of Junior Software Engineer and Junior Software Test Automation Engineer.

The page is specifically designed to make a clearer picture about both the roles in the candidate’s mind. The company provides an opportunity to both CS & IT Students and students not belonging to the mentioned branches.

EPAM Coding Questions

About EPAM

A technological firm called EPAM Systems Inc (EPAM Systems) provides software engineering services for the creation of digital platforms and software. The business offers services for seamless back-end technologies, data-driven business choices, and consumer experiences.

EPAM Hiring Process

Here we have bulleted everything regarding the EPAM Recruitment Process. Going trough each process is mandatory and every round is an elimination round.

  • MyAnatomy will conduct initial screening for the eligible students.
  • EPAM will collect screened students from MyAnatomy and will conduct further rounds of assessments.
  • Round 1: Online Coding Challenge on MyAnatomy (Time Duration : 2 Hours)
  • Round 2: Communication Screening Round, Group Discussion (Microsoft Teams)
  • Round 3 : Online Technical Screening
  • Round 4 : Online HR Screening Round
  • Communication on Final Selection

EPAM Eligibility Criteria

EPAMJunior Software EngineerJunior Automation Test Engineer
Batch20232023
CourseB.Tech (CS / IT / ECE / Any Computer Science Stream)B.Tech Non – CS/IT Streams & MCA
Education
  • 60% acroos
  • No backlogs
  • 60% acroos
  • No backlogs
ExperiencePre-Final Year students can also applyPre-Final Year students can also apply
Cost to Company (CTC)12 LPA + Other FTE benefits8 LPA + Other FTE benefits
Internship Duration6-9 months6-9 months
Internship StipnedRs. 15000/- per month including statutory deductionsRs. 15000/- per month including statutory deductions

Prime Course Trailer

Related Banners

Get PrepInsta Prime & get Access to all 200+ courses offered by PrepInsta in One Subscription

Sample EPAM Coding Questions With Solutions

Question 1 : Choco and chocolate

Problem Statement :

Choco, a chocolate lover, has N amount of money with him. He wants to buy as much chocolate as possible. So, he goes to a chocolate shop “Bandyman ”. Mike, the owner of “Bandyman ” has different types of chocolate in his store (represented by a character) placed in a row.

Mike, give an offer to Choco that he can buy a selected type of chocolate for free and need to pay for the other types of chocolates and Choco can only buy consecutive chocolates.

Now, you need to write a code to find the maximum amount of chocolates Choco can get by selecting the chocolates optimally.

Input format :

1st line contains 2 space separated integers A and B denoting the number of chocolates and the amount of money Choco has.

The 2nd line contains A chocolates represented by a string. All chocolates represented by lowercase alphabets.

The 3rd line represents 26 space separated integers representing the cost to buy the chocolates.
[First integer represents the cost of the chocolate of type ‘a’, 2nd integer represents the cost of the chocolates of type ‘b’ and so on]

Output format :
Print the maximum number of chocolates Choco can buy.

Constraints :
1<=A<=10^5
1<=B<=10^9
1<=cost of chocolate<=10^9

Sample input 1 :
6 10
aabcda
5 4 4 5 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

Sample output 1 :
4

Explanation :

Choco can select the chocolate of type ‘a’ for free and start buying from index 0 and if he buys “aabc” then he has to pay less (0+0+4+4=8) than the total money he has.

This is the maximum number of chocolates he can get in this case.

Question 2 : Minimum Occurrence (R->Medium)

Problem Statement :

Given a sting , return the character that appears the minimum number of times in the string. The string will contain only ascii characters, from the ranges (“a”-”z”,”A”-”Z”,0-9), and case matters . If there is a tie in the minimum number of times a character appears in the string return the character that appears first in the string.

Input Format :
Single line with no space denoting the input string.

Output Format :
Single character denoting the least frequent character.

Constraints :
Length of string <=10^6

Sample Input :
cdadcda

Sample Output :
c

Explanation :
C and A both are with minimum frequency. So c is the answer because it comes first with less index.

Question 3: Password ASCII

Problem statement : Aman, who is working at a software company forgot the password of his Linkedin id.But he knows the ASCII values of his password in reverse order. Help aman to find the password.
To decode the password, first reverse the string of digits, then successively pick valid values from the string and convert them to their ASCII equivalents. Some of the values will have two digits, and others three. Use the ranges of valid values when decoding the string of digits.

Some of the ASCII values are given with their characters:

  •  The ASCII value of A to Z is 65 to 90.
  •  The ASCII value of a to z is 97 to 122.
  •  The ASCII value of space characters is 32.

Note: The password only has alphabets and blank spaces.

Given a string , decode the password by following the steps mentioned above.

Constraints:

  • 1<= |s| <=10^5
  • s[i] is an ascii character in the range [A-Za-z] or a space character

Sample Input:

  • 796115110113721110141108

Sample Output:

  • PrepInsta

Explanation 

  • The reversed string will be 801141011127311011511697, which if analysed as ascii will be “PrepInsta”

Solution:

Question 4 : Match

Problem Statement :
The number of goals achieved by two football teams in matches in a league is given in the form of two lists. For each match of team B. Compute the total number of matches of team A where team A has scored less than or equal to the number of goals scored by team B in that match.

Example : 
team A =[ 1,2,3]
team B =[ 2,4]
Team A has played three matches and has scored team A =[1,2,3] goals in each match respectively. Team B has played two matches and has scored team B = [2,4] goals in each match respectively. For 2 goals scored by team B in its first match, team A has 2 matches with scores 1,2 and 3 hence , the answer is [2,3].

Function Description :

Complete the function counts in the editor below.

Counts has the following parameters:
int teamA(n): First array of positive integers
int teamB(m): Second array of positive integers

Return :
int(m): an array of m positive integers, one for each teamB[i] representing the total number of elements from teamA[j] satisfying teamA[j]<_ teamB[i] where 0<_j

Constraints :
2<_n, m<_10^5
1<_ teamA[j]<_10^9,where 0<_j<n.
1<_ teamB[i]<_10^9,where 0<_j<m

Input format for custom Testing :
Input from stdin will be processed as follows and passed to the functions.

The first line contains an integer n, the number of elements in teamA.
The next n lines each contain an integer describing teamA[j] where 0<_j<n.
The next line contains an integer m, the number of elements in teamB.
The next m lines each contain an integer describing teamB[i]where 0<_i<m.

Sample input 0 :
4 -> teamA[] size n = 4
1 -> teamA = [1,4,2,4]
4
2
4
2-> teamB [] size m = 2
3-> teamB = [3,5]
5

Sample ōutput 0 :
2
4

Explanation 0 :
Given values are n =4, team A = [1,4,2,4], m= 2, and teamB = [3,5].
For teamB[0] = 3, we have 2 elements in teamA(teamA[0] = 1 and teamA[2] = 2) that are <_ teamB[0].
For teamB[1] = 5, we have 4 elements in teamA(teamA[0] = 1, teams[1] =4, teamA[2] = 2, and teamA[3] =4) that are <_teamB[1].
Thus , the function returns the array [2,4] as the answer.

Question 5 : Guess the word

Problem Statement : 

Kochouseph Chittilappilly went to Dhruv Zplanet , a gaming space, with his friends and played a game called “Guess the Word”.
Rules of games are –
Computer displays some strings on the screen and the player should pick one string / word if this word matches with the random word that the computer picks then the player is declared as Winner.
Kochouseph Chittilappilly’s friends played the game and no one won the game. This is Kochouseph Chittilappilly’s turn to play and he decided to must win the game.
What he observed from his friend’s game is that the computer is picking up the string whose length is odd and also that should be maximum. Due to system failure computers sometimes cannot generate odd length words. In such cases you will lose the game anyways and it displays “better luck next time”. He needs your help. Check below cases for better understand

Sample input 0:
5 → number of strings
Hello Good morning Welcome you
Sample output 0:
morning

Explanation:

Hello → 5
Good → 4
Morning → 7
Welcome → 7
You → 3
First word that is picked by computer is morning

Sample input 1:
3
Go to hell
Sample output 1:
Better luck next time
Explanation: 
Here no word with odd length so computer confuses and gives better luck next time

FAQs on EPAM Coding Questions

Question 1: What kind of positions are available at EPAM?

EPAM offers various positions in fields of software development, engineering, design, project management, business analysis, and quality assurance.

Question 2: How long does the recruitment process take?

The duration of recruitment process at EPAM can vary depending on the position and location. Generally, the process can take anywhere from a few weeks to a few months maximum.

Question 3: What is the recruitment process like at EPAM?

The recruitment process at EPAM typically involves a coding test on MyAnatomy, Group Discussions, Technical Test & Interview, and HR interview. The specific steps in the process may vary depending on the position and location.

Get over 200+ course One Subscription

Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others

Checkout list of all the video courses in PrepInsta Prime Subscription

Checkout list of all the video courses in PrepInsta Prime Subscription