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

SDE - 1

Salesforce
upvote
share-icon
4 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2 Months
Topics: Data structures and Algorithm : Graphs, Dynamic Programming, Backtracking (Main Focus), Operating Systems and multi-concurrency ,Core Java, Deadlock Detection/Elimination, Low Level Design
Tip
Tip

Tip 1 : Prepares graphs well
Tip 2 : Focus over core java 
Tip 3 : Node Js is also important

Application process
Where: Referral
Eligibility: 7.5 CGPA
Resume Tip
Resume tip

Tip 1 : Prepare one page resume
Tip 2 : Java was the main focus

Interview rounds

01
Round
Easy
Online Coding Test
Duration60 Minutes
Interview date2 Jan 2021
Coding problem1

No specific timeline,
Hackerrank environment was used

1. One Away

Moderate
15m average time
90% success
0/80
Asked in companies
PayPalGoldman SachsMicrosoft

You are given two strings, string A and string B. Your task is to determine whether string A can be transformed into string B by performing only one of the following operations at most one (or maybe zero) time.

1. You can delete a character from any position.
2. You can replace a character with any other character.
3. You can insert a character at any position. 

Note :

1. The strings are non-empty.
2. The strings only contain lowercase English letters.
Try solving now
02
Round
Easy
Face to Face
Duration60 Minutes
Interview date16 Jan 2021
Coding problem2

Timing : Early morning
Hackerrank environment was used for testing.
Interviewer was really helpful

1. Technical Questions

I was asked to explain my project and then was asked questions on Deadlocks with it's implementation in C++ or any other language of preference. Here, the focus was not on syntax but logic.

Problem approach

Using multithreading, create a program in C++ with one tread being dependent over the previous for a resource, now make the previous thread to wait. So we got a deadlock

2. Search In Rotated Sorted Array

Moderate
30m average time
65% success
0/80
Asked in companies
InformaticaDelhiveryGoldman Sachs

Aahad and Harshit always have fun by solving problems. Harshit took a sorted array consisting of distinct integers and rotated it clockwise by an unknown amount. For example, he took a sorted array = [1, 2, 3, 4, 5] and if he rotates it by 2, then the array becomes: [4, 5, 1, 2, 3].

After rotating a sorted array, Aahad needs to answer Q queries asked by Harshit, each of them is described by one integer Q[i]. which Harshit wanted him to search in the array. For each query, if he found it, he had to shout the index of the number, otherwise, he had to shout -1.

For each query, you have to complete the given method where 'key' denotes Q[i]. If the key exists in the array, return the index of the 'key', otherwise, return -1.

Note:

Can you solve each query in O(logN) ?
Try solving now
03
Round
Hard
Face to Face
Duration60 Minutes
Interview date16 Jan 2021
Coding problem1

Timings : afternoon
Environment : Hackerrank
Interviewer was not much helpful

1. Sudoku

Easy
0/40
Asked in companies
SalesforceMakeMyTripProvidence Global Center LLP

You are given a 9x9 sudoku. Your task is to solve sudoku and return the solution.

A sudoku is a puzzle in which players insert the numbers one to nine into a grid consisting of nine squares subdivided into a further nine smaller squares in such a way that every number appears once in each horizontal line, vertical line, and square.

For example: Consider following sudoku:

example1

To solve it you have to fill blank spaces by numbers from 1 to 9 subject to constraints:

Any number should not occur more than once per row.

Any number should not occur more than once per column.

Any number should not occur more than once per block of 3x3(here, each block is distinguished by bold borders).

It will be solved as:

example1

Problem approach

Create a function that checks after assigning the current index the grid becomes unsafe or not. Keep Hashmap for a row, column and boxes. If any number has a frequency greater than 1 in the hashMap return false else return true; hashMap can be avoided by using loops.
Create a recursive function that takes a grid.
Check for any unassigned location. If present then assign a number from 1 to 9, check if assigning the number to current index makes the grid unsafe or not, if safe then recursively call the function for all safe cases from 0 to 9. if any recursive call returns true, end the loop and return true. If no recursive call returns true then return false.
If there is no unassigned location then return true.

Try solving now
04
Round
Easy
Face to Face
Duration60 Minutes
Interview date16 Jan 2021
Coding problem1

Timings : Evening
Hiring manger + Low Level Design Round
Interviewer was very helpful

1. System Design Question

Create a parking lot Low level design using object oriented programming concepts

Problem approach

Tip 1 : Ask clearly regarding the requirements
Tip 2 : Start development with easy requirements
Tip 3 : Focus over extension and compatibility

Here's your problem of the day

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

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
4 rounds | 7 problems
Interviewed by Salesforce
3385 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by Salesforce
1559 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by Salesforce
1152 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3639 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
115097 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
58238 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
35147 views
7 comments
0 upvotes