Salesforce SDE-3 coding interview questions
These are the 6 coding questions YourAlly has tagged for Salesforce at SDE-3. SDE-3 is the common India title for this level. YourAlly treats it as Senior, the same level as Google L5, Meta E5 and Amazon L6.
A coding round at a large tech company usually runs 45 to 60 minutes with one or two problems. You write code that runs, test it on your own examples and state its time and space cost. At this level the bar is a correct, tested solution you reach mostly on your own, with the trade-offs said out loud.
Practice a mock Salesforce SDE-3 coding loopPractice Salesforce coding questions
Formula Field Evaluation OrderFree to read
Custom formula fields can reference other fields. Given field names and pairs [a, b] meaning a references b, return an order that evaluates every field after the fields it references, choosing the lexicographically smallest valid order. Return [] if references form a cycle.
Input: fields = ["amount","discount","net","tax"], dependencies = [["net","amount"],["net","discount"],["tax","net"]] Output: ["amount","discount","net","tax"]
What a strong answer covers
- Correct edge direction
- Min-heap Kahn's algorithm for smallest order
- Cycle detection by output length
- Handles duplicate edges and self-loops
- O((V + E) log V) complexity
5 more coding questions
- Fair-Share Async Job Dispatch Locked
- Peak API Calls per Org Window Locked
- Range-Partition Orgs Across Pods Locked
- Records Visible Through Role Hierarchy Locked
- Unify Customer Profiles Locked
Related pages
More Salesforce SDE-3 rounds
- System design 4 questions
- Behavioral 5 questions
Salesforce coding at other levels
- Principal 3 questions
- Senior Principal 3 questions
Other companies at this level
- Adobe SDE-3 7 questions
- Amazon SDE-3 10 questions
- Apple SDE-3 7 questions
- Cisco SDE-3 6 questions
- Google SDE-3 14 questions
- IBM SDE-3 6 questions