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

Software Engineer

PharmEasy
upvote
share-icon
3 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Journey
My B.Tech journey at IGDTUW was a thrilling experience that kicked off with an orientation day buzzing with excitement. As I navigated through my classes, I stumbled upon the fascinating world of coding.
Application story
This company visited my campus for placement. We need to apply for this opportunity in their career portal.
Why selected/rejected for the role?
I was rejected because I could not answer questions that are from core topics like OS and Computer Networks.
Preparation
Duration: 4 months
Topics: Data Structures, Pointers, OOPs, System Design, Algorithms, Dynamic Programming
Tip
Tip

Practice regularly on coding platforms and websites. Consistent coding practice is crucial for improving your problem-solving skills and familiarity with various algorithms and data structures. Set aside dedicated time each day to solve coding challenges on platforms like CodeStudio. This consistent practice will enhance your coding proficiency and build confidence.

Application process
Where: Campus
Eligibility: CGPA - 7.0 (Salary: 12 LPA)
Resume Tip
Resume tip

Tip 1: Have some projects on your resume.
Tip 2: Do not put false information on your resume.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration60 minutes
Interview date26 Sep 2024
Coding problem2

1. Reverse the String

Easy
15m average time
85% success
0/40
Asked in companies
IBMFacebookAcko

You are given a string 'STR'. The string contains [a-z] [A-Z] [0-9] [special characters]. You have to find the reverse of the string.

For example:

 If the given string is: STR = "abcde". You have to print the string "edcba".
follow up:
Try to solve the problem in O(1) space complexity. 
Problem approach

You are given a string 'STR'. The string contains [a-z], [A-Z], [0-9], and [special characters]. You have to find the reverse of the string.

Try solving now

2. Permutations of a String

Moderate
15m average time
85% success
0/80
Asked in companies
MakeMyTripDisney + HotstarOla

You are given a string 'STR' consisting of lowercase English letters. Your task is to return all permutations of the given string in lexicographically increasing order.

String A is lexicographically less than string B, if either A is a prefix of B (and A ≠ B), or there exists such i (1 <= i <= min(|A|, |B|)), that A[i] < B[i], and for any j (1 <= j < i) A[i] = B[i]. Here |A| denotes the length of the string A.

For example :

If the string is “bca”, then its permutations in lexicographically increasing order are { “abc”, “acb”, “bac”, “bca”, “cab”, “cba” }.
Note:
Given string contains unique characters.
Problem approach

You are given a string 'STR' consisting of lowercase English letters. Your task is to return all permutations of the given string in lexicographically increasing order. String A is lexicographically less than string B if either A is a prefix of B (and A ≠ B), or there exists an i (1 ≤ i ≤ min(|A|, |B|)) such that A[i] < B[i], and for any j (1 ≤ j < i), A[j] = B[j]. Here |A| denotes the length of string A.

Try solving now
02
Round
Medium
Video Call
Duration60 minutes
Interview date27 Sep 2024
Coding problem2

1. Calculator

Easy
10m average time
90% success
0/40
Asked in companies
ApplePharmEasyGoogle inc

Implement a Calculator using Class and OOPs Concepts.

Problem approach

You are given a string 'S' of length 'N' representing an arithmetic expression. Your task is to compute the result of the expression.

Try solving now

2. Longest Substring Without Repeating Characters

Moderate
20m average time
80% success
0/80
Asked in companies
Morgan StanleyAmazonWalmart

Given a string 'S' of length 'L', return the length of the longest substring without repeating characters.

Example:

Suppose given input is "abacb", then the length of the longest substring without repeating characters will be 3 ("acb").
Problem approach

Given a string 'S' of length 'L', return the length of the longest substring without repeating characters.

Try solving now
03
Round
Easy
Video Call
Duration60 minutes
Interview date28 Sep 2024
Coding problem2

1. Tomato Timer

Moderate
0/80

Given a 2D matrix 'A' of size 'M' x 'N' containing only integers 0, 1, and 2.


Each 2 represents a rotten tomato, each 1 represents a fresh tomato, and each 0 represents an empty cell. A rotten tomato at position (i, j) can rot any adjacent fresh tomato at (i-1, j), (i+1, j), (i, j-1), or (i, j+1) in one unit of time.


Find the minimum time required for all fresh tomatoes to become rotten. If it's impossible for all fresh tomatoes to rot, return -1.


For Example :
Let 'M' = 3, 'N' = 3, and 'A' =
2 1 1
1 1 0
0 1 1

Initially, the rotten tomato is at (0, 0).
After 1 minute, the fresh tomatoes at (0, 1) and (1, 0) become rotten.
The matrix becomes:
2 2 1
2 1 0
0 1 1

After 2 minutes, the tomato at (1, 1) becomes rotten (from (0,1) or (1,0)).
The matrix becomes:
2 2 1
2 2 0
0 1 1

After 3 minutes, the tomatoes at (0, 2) and (2, 1) become rotten.
The matrix becomes:
2 2 2
2 2 0
0 2 1

After 4 minutes, the tomato at (2, 2) becomes rotten.
The matrix becomes:
2 2 2
2 2 0
0 2 2
All fresh tomatoes have become rotten. The minimum time taken is 4.
Try solving now

2. Next Permutation

Moderate
15m average time
85% success
0/80
Asked in companies
OraclePharmEasyMeesho

You have been given a permutation of ‘N’ integers. A sequence of ‘N’ integers is called a permutation if it contains all integers from 1 to ‘N’ exactly once. Your task is to rearrange the numbers and generate the lexicographically next greater permutation.

To determine which of the two permutations is lexicographically smaller, we compare their first elements of both permutations. If they are equal — compare the second, and so on. If we have two permutations X and Y, then X is lexicographically smaller if X[i] < Y[i], where ‘i’ is the first index in which the permutations X and Y differ.

For example, [2, 1, 3, 4] is lexicographically smaller than [2, 1, 4, 3].

Problem approach

We are given a number and we need to return the next greater number possible from that number after reshuffling the sequence of numbers. eg. If the number is 102, what are all greater numbers possible here., 201, 210, 120. But the answer that we will choose will be 120 because it is the next greater number after 102.

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
Software Engineer
5 rounds | 4 problems
Interviewed by PharmEasy
1376 views
0 comments
0 upvotes
SDE - 1
2 rounds | 4 problems
Interviewed by PharmEasy
1001 views
0 comments
0 upvotes
SDE - 1
2 rounds | 4 problems
Interviewed by PharmEasy
1100 views
0 comments
0 upvotes
SDE - 1
2 rounds | 4 problems
Interviewed by PharmEasy
1370 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Engineer
3 rounds | 7 problems
Interviewed by Optum
7873 views
1 comments
0 upvotes
company logo
Software Engineer
5 rounds | 5 problems
Interviewed by Microsoft
9973 views
1 comments
0 upvotes
company logo
Software Engineer
2 rounds | 4 problems
Interviewed by Amazon
4310 views
1 comments
0 upvotes