Panda Guru LogoPanda
Guru

Bad experience - Salesforce SMTS - DSA

Round 1

Questions:

  1. Trapping rain water LC #42 (https://leetcode.com/problems/trapping-rain-water/description/)
  2. Reverse linked list in k groups LC #25 (https://leetcode.com/problems/reverse-nodes-in-k-group/description/)

Test Cases:

Candidate's Approach
  • For Trapping Rain Water:

    • Solved using O(n) time and space complexity.
    • Interviewer insisted on an O(1) space solution.
  • For Reverse Linked List in K Groups:

    • Solved using O(k) space and O(n) time complexity.
    • Interviewer insisted on an O(1) space solution.
Interviewer's Feedback

No feedback provided.