# Salesforce Interview Experience | On-Campus for Internship 2020

Salesforce recently visited our campus for internship recruitment.

Here’s my interview experience:

** Online Coding Round:**

Coding round consisted of 3 question which were of each with increasing difficulty.

Q1) Given an array of integers, and a number ‘sum’, find the number of pairs of integers in the array whose sum is equal to ‘sum’.

solution:link

Q2) Given a String s, find the number of substrings when converted to integer gives you a prime number. Also given that all prime numbers generated should be less than 10^6.

constraint- len(s)<=10^8

Q3) Given a string S and a pattern k, you need to find the shortest length sub-sequence of S which contains all the character of pattern. And also the string is cyclic in which you can come back to the starting position when you have reached the end in cycling order.

solution:

You just need to find the pattern k in s+s(write s two times as repetition allowed for cyclic case). O(n) solution required using sliding windows algorithm.

** Round 1:**

Interview started with introductions.He the asked in detail about one of my projects, he asked about the database structure.

He asked one puzzle : https://www.mathsisfun.com/puzzles/breaking-up-a-chocolate-bar.html

He then told a situation, suppose you are working on a project and you want the design to be different than the one told by the seniors, because you think its better, but the seniors want it their way, how would you approach with your idea?

Then He asked if I had any questions for him.

We had to wait for the results and around 9 students got shortlisted for the next round.

** Round 2:**

Interview started with introductions.This was a longer round than the previous.She asked a lot of questions about OOP(polymorphism, inheritance, etc), DBMS, Operating system, scalability, projects in detail.She also asked a simple question about compound interest.She also asked what all data structure and algorithms I know.She then asked me a puzzle, given a cake you need to cut the cake in 8 parts, 3 cuts to cut the round cake into 8 equal pieces(you can google the answer).

I came out and was asked to go for the next round, where 6 students got selected for the next round.

** Round 3:**

This round was taken by a Senior Manager.

He asked me to tell him about myself.He asked about all the technologies I had used.He then asked me to explain one my projects in detail.

He also some easy logic questions which I don’t remember exactly.He asked what have I heard about salesforce and why want to join.

Out of 8 people, 6 people went up till the HR round. They declared the result and they selected 4 peoples among them and I was one of them.

## Recommended Posts:

- Salesforce Interview Experience | On-Campus for Internship 2020
- SalesForce Interview Experience for internship
- Salesforce Internship Experience (On-Campus)
- Salesforce -On campus internship interview
- Microsoft Interview Experience for SDE Internship 2020
- Adobe Interview Experience for 2020 Internship
- MathWorks Interview Experience (EDG, Oncampus)
- ServiceNow Interview Experience Oncampus
- UHG Interview Experience | OnCampus- 2019
- Amazon Interview Experience | 6-months SDE Internship (2020)
- Adobe Interview experience | 2020 Internship (Off-campus)
- Expedia Interview Experience(On Campus for internship 2020)
- Microsoft Interview Experience for Summer Internship 2020
- Adobe Interview Experience | Summer Internship 2020
- InfoEdge Interview Experience | OnCampus-2019

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.