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

Technical Consultant

Salesforce
upvote
share-icon
3 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: Data Structures, Algorithms Analysis and Design, Coding(C,C++,Java), SQL, Problem Solving
Tip
Tip

Tip 1 : Solve atleast 100 coding problems every week
Tip 2 : Prepare in structure like Arrays first then link list and so on
Tip 3 : Have grip on fundas

Application process
Where: Campus
Eligibility: 65% and above and no backlog
Resume Tip
Resume tip

Tip 1 : Must have atleast 2 projects
Tip 2 : Must have atleast 2 internships

Interview rounds

01
Round
Easy
Online Coding Interview
Duration75 Minutes
Interview date17 Aug 2020
Coding problem2

It was similar to other company initial online test rounds which includes MCQs and coding questions

1. Rotate array

Easy
25m average time
80% success
0/40
Asked in companies
OYOWells FargoLinkedIn

Given an array 'arr' with 'n' elements, the task is to rotate the array to the left by 'k' steps, where 'k' is non-negative.


Example:
'arr '= [1,2,3,4,5]
'k' = 1  rotated array = [2,3,4,5,1]
'k' = 2  rotated array = [3,4,5,1,2]
'k' = 3  rotated array = [4,5,1,2,3] and so on.
Problem approach

Initialize A = arr[0..d-1] and B = arr[d..n-1]
1) Do following until size of A is equal to size of B

a) If A is shorter, divide B into Bl and Br such that Br is of same 
length as A. Swap A and Br to change ABlBr into BrBlA. Now A
is at its final place, so recur on pieces of B. 

b) If A is longer, divide A into Al and Ar such that Al is of same 
length as B Swap Al and B to change AlArB into BArAl. Now B
is at its final place, so recur on pieces of A.

2) Finally when A and B are of equal size, block swap them.

Try solving now

2. Sort linked list of 0s 1s 2s

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

Given a linked list of 'N' nodes, where each node has an integer value that can be 0, 1, or 2. You need to sort the linked list in non-decreasing order and the return the head of the sorted list.


Example:
Given linked list is 1 -> 0 -> 2 -> 1 -> 2. 
The sorted list for the given linked list will be 0 -> 1 -> 1 -> 2 -> 2.


Problem approach

1. Traverse the list and count the number of 0s, 1s, and 2s. Let the counts be n1, n2, and n3 respectively.
2. Traverse the list again, fill the first n1 nodes with 0, then n2 nodes with 1, and finally n3 nodes with 2.

Try solving now
02
Round
Hard
Face to Face
Duration60 Minutes
Interview date21 Aug 2020
Coding problem1

It was started with an intro. He asked questions on resume. He asked my preferred language and ask me to solve the question based on that

1. Chocolate Problem

Moderate
15m average time
85% success
0/80
Asked in companies
AdobePaytm (One97 Communications Limited)JP Morgan

Given an array/list of integer numbers 'CHOCOLATES' of size 'N', where each value of the array/list represents the number of chocolates in the packet. There are ‘M’ number of students and the task is to distribute the chocolate to their students. Distribute chocolate in such a way that:

1. Each student gets at least one packet of chocolate.

2. The difference between the maximum number of chocolate in a packet and the minimum number of chocolate in a packet given to the students is minimum.

Example :

Given 'N' : 5 (number of packets) and 'M' : 3 (number of students)

subsequence

And chocolates in each packet is : {8, 11, 7, 15, 2}

All possible way to distribute 5 packets of chocolates among 3 students are -

( 8,15, 7 ) difference of maximum-minimum is ‘15 - 7’ = ‘8’
( 8, 15, 2 ) difference of maximum-minimum is ‘15 - 2’ = ‘13’ 
( 8, 15, 11 ) difference of maximum-minimum is ‘15 - 8’ = ‘7’
( 8, 7, 2 ) difference of maximum-minimum is ‘8 - 2’ = ‘6’
( 8, 7, 11 ) difference of maximum-minimum is ‘11 - 7’ = ‘4’
( 8, 2, 11 ) difference of maximum-minimum is ‘11 - 2’ = ‘9’
( 15, 7, 2 ) difference of maximum-minimum is ‘15 - 2’ = 13’
( 15, 7, 11 ) difference of maximum-minimum is ‘15 - 7’ = ‘8’
( 15, 2, 11 ) difference of maximum-minimum is ‘15 - 2’ = ‘13’
( 7, 2, 11 ) difference of maximum-minimum is ‘11 - 2’ = ‘9’

Hence there are 10 possible ways to distribute ‘5’ packets of chocolate among the ‘3’ students and difference of combination (8, 7, 11) is ‘maximum - minimum’ = ‘11 - 7’ = ‘4’ is minimum in all of the above.
Problem approach

I was unable to solve this with an optimised approach but here is the detailed steps to solve it:-

To minimise the difference, we must choose consecutive elements from a sorted packet. We first sort the array arr[0..n-1], then find the subarray of size m with the minimum difference between the last and first elements.

Try solving now
03
Round
Easy
HR Round
Duration50 minutes
Interview date18 Jun 2022
Coding problem1

I was not selected for this round but here what my friend told who got selected. He was asked question purely on his resume and then 1 problem solving question.

1. Puzzle

There are 100 doors in a row, all doors are initially closed. A person walks through all doors multiple times and toggle (if open then close, if close then open) them in the following way: 

In the first walk, the person toggles every door 

In the second walk, the person toggles every second door, i.e., 2nd, 4th, 6th, 8th, … 

In the third walk, the person toggles every third door, i.e. 3rd, 6th, 9th, … 

Likewise,

In the 100th walk, the person toggles the 100th door. 

Which doors are open in the end?

Here's your problem of the day

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

Skill covered: Programming

Which keyword is used for inheritance?

Choose another skill to practice
Similar interview experiences
company logo
Technical Associate
2 rounds | 3 problems
Interviewed by Salesforce
0 views
0 comments
0 upvotes
company logo
Technical Consultant
3 rounds | 7 problems
Interviewed by Salesforce
600 views
0 comments
0 upvotes
company logo
MTS 1
3 rounds | 6 problems
Interviewed by Salesforce
858 views
0 comments
0 upvotes
company logo
MTS
3 rounds | 3 problems
Interviewed by Salesforce
893 views
0 comments
0 upvotes