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

SDE - 1

Salesforce
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Journey
I had some coding knowledge when I joined college. However, I did not focus on it much for the first two years. Afterwards, I dedicated a lot of time to improving my coding skills. I received several job offers and ultimately decided to join Cisco as an intern in my fourth year. Following my internship, I received a PPO and started working there full-time.
Application story
I participated in an off-campus drive. I applied via referral, cleared the online test, and proceeded to the interview.
Why selected/rejected for the role?
I was rejected because I couldn't answer some of the questions correctly with the level of explanation expected by the interviewer, although they were relatively easy.
Preparation
Duration: 4 Months
Topics: Data Structures, Algorithms, Aptitude, OOPS
Tip
Tip

Tip 1: Review previously asked interview and online test questions.

Tip 2: Ensure a strong understanding of Data Structures and Algorithms (DSA).

Tip 3: Complete at least two substantial projects and thoroughly understand every aspect of them.

 

Application process
Where: Referral
Eligibility: Above 7 CGPA
Resume Tip
Resume tip

Tip 1: Have at least two good projects explained briefly, covering all critical points.

Tip 2: Mention every skill you have.

Tip 3: Focus more on skills, projects, and experiences.

 

Interview rounds

01
Round
Medium
Video Call
Duration60 Minutes
Interview date2 Jun 2022
Coding problem2

This round tested your DSA skills; you need to be well prepared for it and the depth of your knowledge in the tech stack. The questions were also asked on Core Computer Science Subjects like OS, Data Structures and algorithms, OOPs, DBMS, and some behavioural questions.

1. Maximum sum of non-adjacent elements

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

You are given an array/list of ‘N’ integers. You are supposed to return the maximum sum of the subsequence with the constraint that no two elements are adjacent in the given array/list.

Note:
A subsequence of an array/list is obtained by deleting some number of elements (can be zero) from the array/list, leaving the remaining elements in their original order.
Try solving now

2. Minimum Cost to Hire M Candidates

Hard
50m average time
50% success
0/120
Asked in companies
SalesforceShareChatApple

You are the HR of the Ninja team and planning to hire ‘M’ candidates out of ‘N’ candidates to form a paid group. The candidates have been evaluated on the basis of their skills and have been asked for their minimum salary expectations. So, you are given two arrays, ‘SKILL’ and ‘EXPECTED_SALARY’, where ‘SKILL[i]’ and ‘EXPECTED_SALARY[i]’ represent the skill and minimum salary expectation of ‘i-th’ candidate, respectively. You have to consider the following two rules for hiring a group of ‘M’ candidates:

1) Every candidate in the paid group should be paid in the ratio of their skill compared to other candidates in the paid group.
2) The minimum salary expectation of every candidate in the paid group should be fulfilled.

You have to return the minimum amount of money required to hire ‘M’ candidates as per the above-mentioned rules.

Note:

Answers which are within the range 10^-6 of the correct answer will be considered correct.
Try solving now
02
Round
Easy
Video Call
Duration60 Minutes
Interview date16 Jun 2022
Coding problem2

In this round, I was asked one system design question and one good DSA question.

1. System Design Question

Design Search Typeahead.

Problem approach

Tip 1: Listen to all the requirements clearly
Tip 2: Practice previously asked questions

2. Maximum Sum Of (i * ARR[i]) Among All Possible Rotations Of An Array

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

You are given an array 'ARR' consisting of 'N' elements, and you need to find the maximum value of sum(i * ARR[i]) among all possible rotations of the given array. The rotations allowed are left rotation, and right rotation, and these rotations can be performed any number of times on the array.

Sum(i * ARR[i]) denotes the summation of all values (i * ARR[i]) for every 'i', where 0 <= 'i' <= 'N' - 1.

Note :

1. The array follows 0-based indexing.
2. In one rotation operation, all elements of the array will shift either towards the left or right by one index.
3. The element at the extreme left index (i.e. 0th index) will shift to the 'N-1'th index after applying one left rotation on the array and the rest all the elements will shift to the 'i-1'th index.
4. The element at the extreme right index (i.e. 'N-1'th index) will shift to the 0th index after applying one right rotation on the array and the rest of the elements will shift to the 'i' + 1'th index.
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

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 | 5 problems
Interviewed by Salesforce
1696 views
0 comments
0 upvotes
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
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