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

Salesforce Developer

PwC India
upvote
share-icon
3 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2.5 Months
Topics: Oops concept , core java , dbms, data structures, system design
Tip
Tip

Tip 1 : Practice leetcode question from easy to medium and revise oops concepts.
Tip 2 : Have atleast one project good knowledge which you have written in resume and technology that you have used in that and what are the future enhancement you can do.
Tip 3 : Be honest with resume.

Application process
Where: Campus
Eligibility: 7 CGPA
Resume Tip
Resume tip

Tip 1 : Have some good project on resume with some database and latest technology and github link 
Tip 2 : Try to host your project online like on Heroku server.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration60 minutes
Interview date17 Feb 2021
Coding problem1

There were 21 questions – 1 Coding + 20 MCQs.

MCQ – 20 questions from CS subjects like DBMS, OS, CN, SQL, OOPs, some output-based questions, and some aptitude-type questions. (I solved almost all the questions correctly)

1. Longest Consecutive Sequence

Moderate
40m average time
70% success
0/80
Asked in companies
AmazonAppleUber

You are given an unsorted array/list 'ARR' of 'N' integers. Your task is to return the length of the longest consecutive sequence.

The consecutive sequence is in the form ['NUM', 'NUM' + 1, 'NUM' + 2, ..., 'NUM' + L] where 'NUM' is the starting integer of the sequence and 'L' + 1 is the length of the sequence.

Note:

If there are any duplicates in the given array we will count only one of them in the consecutive sequence.
For example-
For the given 'ARR' [9,5,4,9,10,10,6].

Output = 3
The longest consecutive sequence is [4,5,6].
Follow Up:
Can you solve this in O(N) time and O(N) space complexity?
Try solving now
02
Round
Easy
Face to Face
Duration45 Minutes
Interview date18 Feb 2021
Coding problem1

He started with an introduction and asked me for an Introduction, then he looked into my resume and asked about my internship experience and the projects I mentioned in my resume. He also asked about my final year B.Tech projects and a few questions about the tech I used.
He gave me 1 questions and asked me to give logic first, then time and space complexity, and finally asked me to implement that on online ide.

1. MaxFrequencyStack

Hard
45m average time
55% success
0/120
Asked in companies
AppleSalesforceAmazon

Implement the given class FrequencyStack consisting of three functions :

FrequencyStack() : Creates a new FrequencyStack.

void push(int element) : Pushes the element onto the top of the stack.

int pop() : Returns and remove the most frequent element in the stack. If there are multiple elements with the same maximum frequency then return the integer which is closest to the stack top.

You will be given ‘q’ queries consisting of push and pop operation. In each query input is of following type :

0 : It means we have to pop the element with maximum frequency and return this element.

1 ‘element’ : It means we have to push ‘element’ onto the top of the stack. 

Note: If a pop operation is used in an empty stack nothing happens to the stack, but you have to return  -1.
Try solving now
03
Round
Easy
Face to Face
Duration35 minutes
Interview date18 Feb 2021
Coding problem2

I started with an Introduction, and then he checked my resume and asked about my internship experience and all the tech stacks I have worked on.

1. Technical Questions

A few questions I remembered were – the difference between threads and process, why process synchronization, deadlock, the difference between SQL and NoSql DBMS, in which language MongoDB is written, Different layers in CN, the difference between HTTP and HTTPS, what happens when you search something, how to secure your site? How the data of a site can be leaked? And some more which I don’t remember right now.

2. Permutation In String

Easy
0/40
Asked in companies
FreshworksDelhiveryPwC India

You are given two strings named str1 and str2 of length N and M respectively. Find whether string str2 contains one of the permutations of string str1 as its substring. In other words, whether there exists any permutation of string str1 that is a substring of str2.

For Example :

Input: str1 = “ab” , str2 = “aoba”
Output: True
Explanation : Permutations of first-string str1 i.e. “ab” are [ “ab”, “ba” ].
The substrings of str2 i.e. “aoba” are [ “a”, “o”, “b”, “a”, “ao”, “ob”, “ba”, “aob”, “oba”, “aoba” ].
The string “ba” is present in the list of substrings of string str2.
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
company logo
Salesforce Developer
3 rounds | 6 problems
Interviewed by PwC India
0 views
0 comments
0 upvotes
company logo
Associate Consultant
2 rounds | 2 problems
Interviewed by PwC India
1620 views
0 comments
0 upvotes
company logo
Servicenow Developer
2 rounds | 2 problems
Interviewed by PwC India
1569 views
0 comments
0 upvotes
company logo
SDE - Intern
1 rounds | 3 problems
Interviewed by Amazon
3320 views
0 comments
0 upvotes