Open In App

Salesforce Interview Experience for Summer Internship (Off-Campus)

Last Updated : 07 Sep, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

It is an interview experience of one of my friends who recently got an internship in Salesforce. Following are the details of her interview at Salesforce. I will write her experience from the first-person point of view.

It is an opportunity for students who are pursuing a bachelor’s degree and are in their pre-final year. Salesforce is a great company that offers a high CTC and has a great work culture.

There were 2 Technical interview rounds and 1 HR Round.

Interview Round 1: The interviewer just asked my name and directly started to ask the DSA questions. My questions are listed below:

After this, he asked me some basic concepts of oops like the difference between interfaces and abstract classes. After this, the interview ended. The duration of the interview was about 1 hour.

Interview Round 2: The second round started with my introduction as the interviewer asked me to introduce myself. Next, the interviewer asked me some DSA questions. Following are the questions:

Question: Design a queue that supports push and pop operations in the front, middle, and back.

Implement the FrontMiddleBack class:

  • FrontMiddleBack() Initializes the queue.
  • void push front(int val) Adds val to the front of the queue.
  • void pushMiddle(int val) Adds val to the middle of the queue.
  • void pushBack(int val) Adds val to the back of the queue.
  • int popFront() Removes the front element of the queue and returns it. If the queue is empty, return -1.
  • int popMiddle() Removes the middle element of the queue and returns it. If the queue is empty, return -1.
  • int popBack() Removes the back element of the queue and returns it. If the queue is empty, return -1.
Notice that when there are two middle position choices, the operation is performed on the frontmost
 middle position choice. For example:

Pushing 6 into the middle of [1, 2, 3, 4, 5] results in [1, 2, 6, 3, 4, 5].
Popping the middle from [1, 2, 3, 4, 5, 6] returns 3 and results in [1, 2, 4, 5, 6].
 
Example 1:

Input:
["FrontMiddleBackQueue", "pushFront", "pushBack", "pushMiddle", "pushMiddle", "popFront", 
"popMiddle", "popMiddle", "popBack", "popFront"]
[[], [1], [2], [3], [4], [], [], [], [], []]
Output:
[null, null, null, null, null, 1, 3, 4, 2, -1]

Explanation:

FrontMiddleBackQueue q = new FrontMiddleBackQueue();
q.pushFront(1);   // [1]
q.pushBack(2);    // [1, 2]
q.pushMiddle(3);  // [1, 3, 2]
q.pushMiddle(4);  // [1, 4, 3, 2]
q.popFront();     // return 1 -> [4, 3, 2]
q.popMiddle();    // return 3 -> [4, 2]
q.popMiddle();    // return 4 -> [2]
q.popBack();      // return 2 -> []
q.popFront();     // return -1 -> [] (The queue is empty)

Constraints:

1 <= val <= 109
At most 1000 calls will be made to pushFront, pushMiddle, pushBack, popFront, 
popMiddle, and popBack.

After this, the interviewer asked me to explain the project briefly. Since my project was based on JavaScript, he asked me about the functions that I used in my project . The total duration of this round was also about 1 hour.

HR Round:

  • The duration of this round was also about 1 hour.
  • The interview again started with my brief intro.
  • The interviewer gave me some puzzles to solve.
  • After that, she asked me some work -style based questions.
  • At last, HR asked me if I had any questions to ask him and I asked about the work culture and the interview concluded.

The very next day, I received an email that I have been selected for 2 monthly internships at Salesforce and I received a link on which I was said to apply. I finally got selected.


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads