Salesforce OA | General Software Engineer Assessment (INDIA ONLY) + onsites (Drive Sep 20)
Anonymous User
3607

Role: Frontend Developer
Location: Hyderabad
EOY: 4+

I just got done with Salesforce Hackerrank OA. The test has two questions. I'd say the first one was kinda okay but the second one was freaking hard for sure .

Q1. image

Q2:

image
image
image

PS:

I solved the first one completely.
I solved the second one with DFS but I was only able to pass 11 out 15 test cases .
Tip: Use BFS or Union Find

Q2: https://leetcode.com/problems/minimize-malware-spread/description

Funny thing was , I saw this question yesterday and It thought of solving it but I didn't . And I showed up today.

Good Luck everyone :)

Update: 1

Got moved to onsites, have my round for DSA & OOPS. Wish me luck guys :)

Below rounds were done the same day as it was a hiring event on Sept 20.

Round 1:
Explained and coded up everything .

https://leetcode.com/problems/merge-intervals/description/
https://leetcode.com/problems/longest-increasing-subsequence/

Implementation of debounce , CSS GRID, FLEXBOX, AXIOS, Fetch, ( Basically JS part) HTML5 semantic elements etc

Round 2:

Q1 ) Promise based question
Q2) You are given a graph consisting of n
nodes (numbered from 1 to n) and m edges. You need to first calculate the difference between the maximum numbered and minimum numbered node in each connected component. Then you need to answer the maximum of these differences across all connected components.

Input
The first line of input consists of two space separated integers n
(1≤n≤105)
and m
(1≤m≤105)
. The next m lines each consist of 2 space separated integers, u and v, which denote that there is an edge between the nodes u and v
.

Output
The output consists of a single integer - the maximum difference across all connected components.

Example
Input
6 4
1 3
3 5
5 2
2 4
Output
4

I did well. Let's see what happens

Round 3:
Some JS related quircky questions , HTML & CSS3 type questions (trickiest ever)
Some Under the hood concepts like CRP, Rendring Tree , parsing etc .
Syetem Design : Design WYSIWYG type Editor In Real time on whiteboard.

This round was not easy for sure

This round took 2 hours . My head is gonna explode :(

Round 4:

It was a managerial round . Where we talked about technologies based questions . The guy was smooth and listened to my answers carefully. We talked about SPA, Performance , Optimization, Testing and common questions like have you ever had a conflict type things . He also asked scenario based question like what if your site etc.

Lastly the guy talked about Salesforce work culture and how it operates and different that other companies . I asked him a couple of questions and we concluded.

I'm done with my rounds . It was a hell of day . I really enjoyed these rounds . Keep going guys. I'll update if I'm selected .

Comments (14)