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

SDE - 1

Salesforce
upvote
share-icon
4 rounds | 7 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6
Topics: DSA,OS,DBMS,Computer Networks and Low Level Design.
Tip
Tip

Tip 1 : Practice on Leetcode, InterviewBit
Tip 2 : Practice more on Arrays,Trees,Linked Lists, DP
Tip 3 : Dont fake in resume

Application process
Where: Other
Eligibility: Circuit branches only
Resume Tip
Resume tip

Tip 1: Don't fake in resume
Tip 2: Short and Precise

Interview rounds

01
Round
Easy
Online Coding Interview
Duration60
Interview date13 Jan 2021
Coding problem3

Online Tests with 3 easy/medium questions on DSA

1. Word Problem which required brute force approach to solve the problem

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

You are given a list of “N” strings A. Your task is to check whether you can form a given target string using a combination of one or more strings of A.

Note :
You can use any string of A multiple times.
Examples :
A =[“coding”, ”ninjas”, “is”, “awesome”]  target = “codingninjas”
Ans = true as we use “coding” and “ninjas” to form “codingninjas”
Problem approach

Brute force approach.

Try solving now

2. Question on Recursion/back tracking.Combination Sum problem

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

You are given an array 'ARR' of 'N' distinct positive integers. You are also given a non-negative integer 'B'.


Your task is to return all unique combinations in the array whose sum equals 'B'. A number can be chosen any number of times from the array 'ARR'.


Elements in each combination must be in non-decreasing order.


For example:
Let the array 'ARR' be [1, 2, 3] and 'B' = 5. Then all possible valid combinations are-

(1, 1, 1, 1, 1)
(1, 1, 1, 2)
(1, 1, 3)
(1, 2, 2)
(2, 3)
Problem approach

Question on Recursion/back tracking.
Combination Sum problem

Try solving now

3. Problem on Dynamic Programming.Longest Common Substring variation.

Moderate
25m average time
75% success
0/80
Asked in companies
Wells FargoShareChatAdobe

You are given two strings, 'str1' and 'str2'. You have to find the length of the longest common substring.


A substring is a continuous segment of a string. For example, "bcd" is a substring of "abcd", while "acd" or "cda" are not.


Example:
Input: ‘str1’ = “abcjklp” , ‘str2’ = “acjkp”.

Output: 3

Explanation:  The longest common substring between ‘str1’ and ‘str2’ is “cjk”, of length 3.
Problem approach

Problem on Dynamic Programming.
Longest Common Substring variation.

Try solving now
02
Round
Easy
Video Call
Duration30
Interview date23 Jan 2021
Coding problem1

2 questions on DSA + LLD Design Problem

1. Min Jumps

Easy
15m average time
85% success
0/40
Asked in companies
IBMAmerican ExpressSamsung R&D Institute

You live in a Ninja town which is in the form of a N * M grid. In this town, people travel from one place to another by jumping over the buildings which are present in each cell of the grid. It is Christmas eve, and Santa wants to give gifts and chocolates to the kids who live in the building which is present at the cell (N - 1, M - 1). Initially, Santa is present on cell (0, 0). Since Santa is in a hurry, help him find a path from starting point to the endpoint with the least amount of time.

The Santa may go only from one building to any of its adjacent buildings which is present either to the right or to the bottom or bottom right cell i.e. if the current position is (x, y), he may go to (x + 1, y + 1) or (x + 1, y) or (x, y + 1) given that the new coordinates are in the grid. The time taken to reach from one building to another is equal to the absolute difference between the heights of buildings.

Note:

1. The heights of the buildings are positive.
2. Santa starts from the cell (0, 0) and he has to reach the building (N - 1, M - 1).
3. Santa cannot leave the grid at any point of time.
Try solving now
03
Round
Medium
Face to Face
Duration60
Interview date21 Mar 2022
Coding problem2

2 DSA Question + DBMS + Resume

1. Check Binary Search Tree

Moderate
25m average time
0/80
Asked in companies
FacebookAmazonFreshworks

You have been given a binary tree of integers with N number of nodes. Your task is to check if that input tree is a BST (Binary Search Tree) or not.

A binary search tree (BST) is a binary tree data structure which has the following properties.

• The left subtree of a node contains only nodes with data less than the node’s data.
• The right subtree of a node contains only nodes with data greater than the node’s data.
• Both the left and right subtrees must also be binary search trees.
Example :

BST1

Answer :

Level 1: 

All the nodes in the left subtree of 4 (2, 1, 3) are smaller 
than 4, all the nodes in the right subtree of the 4 (5) are 
larger than 4.

Level 2 :

For node 2:
All the nodes in the left subtree of 2 (1) are smaller than 
2, all the nodes in the right subtree of the 2 (3) are larger than 2.
For node 5:
The left and right subtrees for node 5 are empty.

Level 3:

For node 1:
The left and right subtrees for node 1 are empty.
For node 3:
The left and right subtrees for node 3 are empty.

Because all the nodes follow the property of a binary search tree, the above tree is a binary search tree.
Problem approach

Check Binary Search Tree

Try solving now

2. Reverse a Linked List in O(n)

Easy
15m average time
85% success
0/40
Asked in companies
IBMBig BasketSAP Labs
Note :
You do not need to print anything, just return the head of the reversed linked list. 
Problem approach

Reverse a Linked List in O(n)

Try solving now
04
Round
Easy
HR Round
Duration30
Interview date23 Jan 2021
Coding problem1

Detailed Discussion on Resume + Profile.

1. Basic HR Questions

What are your hobbies?

Who is your favourite actor?

Here's your problem of the day

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

Skill covered: Programming

Which collection class forbids duplicates?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Salesforce
1121 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by Salesforce
966 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by Salesforce
837 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
942 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
107325 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
51680 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
32028 views
6 comments
0 upvotes