Pegasystems interview experience Real time questions & tips from candidates to crack your interview

SDE - Intern

Pegasystems
upvote
share-icon
3 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Journey
I came to know about this job from there official site i have applied to this job and get selected for exam, then i have given the exam and also got selected for the interview
Application story
I applied for this profile on the company website where i got the test link after applying for the jobs
Why selected/rejected for the role?
I was not able to answer the optimal approach for a problem that's why i think i was rejected in the interview
Preparation
Duration: 4 months
Topics: Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1 : Graph should be on your tips.
Tip 2 : while explaining the solution to interviewer, dont just hop onto the most optimal solution. Start with the brute force one, give the cons of brute force solution, and then go step by step till you reach the optimal solution.
Tip 3 : Improve on your communication skills as well.

Application process
Where: Other
Eligibility: Above 6 CGPA
Resume Tip
Resume tip

Tip 1 : Mention only what is required for your profile, for e.g. do not stress too much on your co curricular stuff. Rather, try explaining more of your technical stuff that is relevant for your job.
Tip 2 : keep it limited to 1 page. And make sure its a pdf and not an image.

Interview rounds

01
Round
Medium
Video Call
Duration90 minutes
Interview date18 Nov 2022
Coding problem2

1. Greatest Common Divisor

Easy
15m average time
85% success
0/40
Asked in companies
OracleGoldman SachsDell Technologies

You are given two numbers, ‘X’ and ‘Y’. Your task is to find the greatest common divisor of the given two numbers.

The Greatest Common Divisor of any two integers is the largest number that divides both integers.

For Example:
You are given ‘X’ as 20 and ‘Y’ as 15. The greatest common divisor, which divides both 15 and 20, is 5. Hence the answer is 5.
Problem approach

You are given two numbers, ‘X’ and ‘Y’. Your task is to find the greatest common divisor of the given two numbers.

Try solving now

2. Circular Tour

Easy
35m average time
85% success
0/40
Asked in companies
AdobeMicrosoftExpedia Group

You have been given a circular path. There are N petrol pumps on this path that are numbered from 0 to N - 1 (Both inclusive). Each petrol pump has two values associated with it:

1)The amount of petrol that is available at this particular petrol pump.

2)The distance to reach the next petrol pump.

You are on a truck having an empty tank of infinite capacity. You can start the tour from any of the petrol pumps. Your task is to calculate the first petrol pump from where the truck will be able to complete the full circle or determine if it is impossible to do so.

You may assume that the truck will stop at every petrol pump and it will add the petrol from that pump to its tank. The truck will move one kilometre for each litre of petrol consumed.

Problem approach

You have been given a circular path. There are N petrol pumps on this path that are numbered from 0 to N - 1 (Both inclusive). Each petrol pump has two values associated with it:
1)The amount of petrol that is available at this particular petrol pump.
2)The distance to reach the next petrol pump.
You are on a truck having an empty tank of infinite capacity. You can start the tour from any of the petrol pumps. Your task is to calculate the first petrol pump from where the truck will be able to complete the full circle or determine if it is impossible to do so.
You may assume that the truck will stop at every petrol pump and it will add the petrol from that pump to its tank. The truck will move one kilometre for each litre of petrol consumed.

Try solving now
02
Round
Easy
Video Call
Duration90 minutes
Interview date18 Nov 2022
Coding problem2

1. System Design Question

Parking Lot design

Problem approach

Tip 1 : Read basics of system design
Tip 2 : Get your requirements before you dwell into designing
Tip 3 : Talk with the interviewer

2. Conceptual Questions

Basic questions related to speed time distance, profit-loss, prime factors, etc

Problem approach

Tip 1 : Keep calm and hear the question thoroughly
Tip 2 : Don't rush to answer, even if you get it in few seconds, take your time.

03
Round
Medium
Video Call
Duration60 minutes
Interview date18 Nov 2022
Coding problem2

1. Next Greater Number

Moderate
15m average time
90% success
0/80
Asked in companies
Morgan StanleySamsungArcesium

You are given a string S which represents a number. You have to find the smallest number strictly greater than the given number which contains the same set of digits as of the original number i.e the frequency of each digit from 0 to 9 should be exactly the same as in the original number.

For example:
If the given string is 56789, then the next greater number is 56798. Note that although 56790 is also greater than the given number it contains 1 '0' which is not in the original number and also it does not contain the digit '8'.

Note:

The given string is non-empty.

If the answer does not exist, then return -1.

The given number does not contain any leading zeros.
Problem approach

You are given a string S which represents a number. You have to find the smallest number strictly greater than the given number which contains the same set of digits as of the original number i.e the frequency of each digit from 0 to 9 should be exactly the same as in the original number.

Try solving now

2. Fenwick Tree

Moderate
15m average time
85% success
0/80
Asked in companies
Goldman SachsAmazonSamsung Electronics

You are given an array/list 'ARR' of ‘N’ integers, and ‘Q’ queries. Each query can be of two types:

Given 2 integers ‘L’,’R’ ( L>=0 and R<N ) find the sum of all the elements of the array with the index in the range 'L' and 'R' (inclusive). This is a query of type range sum.

Given an index ‘i’ update the value of ARR[i] to a given integer ‘X’. This is a query of type point update.

Your task is to perform the queries on the given array and return the desired output for each query.

Problem approach

Fenwick Tree, also known as Binary Indexed Tree (BIT), is a data structure used to efficiently query and update prefix sums of an array. It is particularly useful when there is a need for frequent updates and prefix sum queries on a large array.

The Fenwick Tree works by maintaining a binary tree where each node represents the sum of a range of indices. The tree is constructed in such a way that each node's index is the sum of the indices of its child nodes. This property makes it possible to compute the prefix sum of an array element by following a path from the element's index to the root of the tree.

To update an element in the array, the tree is traversed from the node corresponding to the element's index to the root, and each node's value is incremented by the update amount. Similarly, to compute the prefix sum of a range of indices, the tree is traversed from the node corresponding to the starting index to the node corresponding to the ending index, and the sum of the values along the path is returned.

Try solving now

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
SDE - 1
2 rounds | 4 problems
Interviewed by Pegasystems
1223 views
0 comments
0 upvotes
SDE - 1
3 rounds | 6 problems
Interviewed by Pegasystems
705 views
0 comments
0 upvotes
SDE - 1
3 rounds | 6 problems
Interviewed by Pegasystems
1510 views
0 comments
0 upvotes
SDE
3 rounds | 5 problems
Interviewed by Pegasystems
525 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15480 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15338 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10142 views
2 comments
0 upvotes